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:49:19 -05:00
parent ec1c286c91
commit a42596f118
2 changed files with 8 additions and 8 deletions

View file

@ -4,9 +4,10 @@
var msg = Globalize.translate('DeleteDeviceConfirmation');
Dashboard.confirm(msg, Globalize.translate('HeaderDeleteDevice'), function (result) {
require(['confirm'], function (confirm) {
confirm(msg, Globalize.translate('HeaderDeleteDevice')).then(function () {
if (result) {
Dashboard.showLoadingMsg();
ApiClient.ajax({
@ -19,7 +20,8 @@
loadData(page);
});
}
});
});
}