Fix real-time nickname hinting when transfering players

This commit is contained in:
printempw 2017-05-06 21:21:19 +08:00
parent 2665d5c56b
commit 48c8aeb6ff

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-05-05 12:07:16 * @Last Modified time: 2017-05-06 21:17:57
*/ */
'use strict'; 'use strict';
@ -367,12 +367,14 @@ function changeOwner(pid) {
url: `./user/${uid}`, url: `./user/${uid}`,
dataType: 'json' dataType: 'json'
})).then(result => { })).then(result => {
$('#swal2-content').html( $('.swal2-content').html(
`${trans('admin.changePlayerOwner')}<br> trans('admin.changePlayerOwner') +
<small>${trans('admin.targetUser', { nickname: result.user.nickname })}</small>` '<small style="display: block; margin-top: .5em;">' +
trans('admin.targetUser', { nickname: result.user.nickname }) +
'</small>'
); );
}).catch(() => { }).catch(() => {
$('#swal2-content').html(`${trans('admin.changePlayerOwner')}<br><small>${trans('admin.noSuchUser')}</small>`); $('.swal2-content').html(`${trans('admin.changePlayerOwner')}<br><small>${trans('admin.noSuchUser')}</small>`);
}); });
} }
}, 350)); }, 350));