1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update to new confirm pattern

This commit is contained in:
Luke Pulverenti 2016-02-22 13:35:44 -05:00
parent 031fceebd3
commit 28d045d7fa

View file

@ -4,16 +4,18 @@
var msg = Globalize.translate('DeleteUserConfirmation'); var msg = Globalize.translate('DeleteUserConfirmation');
Dashboard.confirm(msg, Globalize.translate('DeleteUser'), function (result) { require(['confirm'], function (confirm) {
confirm(msg, Globalize.translate('DeleteUser')).then(function () {
if (result) {
Dashboard.showLoadingMsg(); Dashboard.showLoadingMsg();
ApiClient.deleteUser(id).then(function () { ApiClient.deleteUser(id).then(function () {
loadData(page); loadData(page);
}); });
} });
}); });
} }