add some detection for bad ass

This commit is contained in:
printempw 2017-01-21 11:17:45 +08:00
parent f9b812b156
commit c6850f41bb

View File

@ -2,7 +2,7 @@
* @Author: printempw * @Author: printempw
* @Date: 2016-07-22 14:02:44 * @Date: 2016-07-22 14:02:44
* @Last Modified by: printempw * @Last Modified by: printempw
* @Last Modified time: 2017-01-08 16:07:24 * @Last Modified time: 2017-01-21 10:58:50
*/ */
'use strict'; 'use strict';
@ -208,21 +208,25 @@ $('body').on('change', '#preference', function() {
}); });
function changeTexture(pid) { function changeTexture(pid) {
var dom = '<div class="form-group">'+ let dom = `
'<label for="model">'+trans('admin.textureType')+'</label>'+ <div class="form-group">
'<select class="form-control" id="model">'+ <label for="model">${trans('admin.textureType')}</label>
'<option value="steve">'+trans('admin.skin', {'model': 'Steve'})+'</option>'+ <select class="form-control" id="model">
'<option value="alex">'+trans('admin.skin', {'model': 'Alex'})+'</option>'+ <option value="steve">${trans('admin.skin', {'model': 'Steve'})}</option>
'<option value="cape">'+trans('admin.cape')+'</option>'+ <option value="alex">${trans('admin.skin', {'model': 'Alex'})}</option>
'</select>'+ <option value="cape">${trans('admin.cape')}</option>
'</div>'+ </select>
'<div class="form-group">'+ </div>
'<label for="tid">'+trans('admin.pid')+'</label>'+ <div class="form-group">
'<input id="tid" class="form-control" type="text" placeholder="'+trans('admin.pidNotice')+'">'+ <label for="tid">${trans('admin.pid')}</label>
'</div>'; <input id="tid" class="form-control" type="text" placeholder="${trans('admin.pidNotice')}">
</div>`;
var player_name = $('#'+pid).find('#player-name').text(); let playerName = $('#'+pid).find('#player-name').text();
showModal(dom, trans('admin.changePlayerTexture', {'player': player_name}), 'default', 'ajaxChangeTexture('+pid+')');
showModal(dom, trans('admin.changePlayerTexture', {'player': playerName}), 'default', {
callback: `ajaxChangeTexture(${pid})`
});
return; return;
} }