Fix real-time nickname hinting when transfering players
This commit is contained in:
parent
2665d5c56b
commit
48c8aeb6ff
|
|
@ -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));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user