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 14:12:06 -05:00
parent a42596f118
commit 166a16b60d
11 changed files with 46 additions and 55 deletions

View file

@ -32,9 +32,9 @@
var message = Globalize.translate('MessageFileWillBeDeleted') + '<p style="word-wrap:break-word;">' + item.OriginalPath + '</p><p>' + Globalize.translate('MessageSureYouWishToProceed') + '</p>';
Dashboard.confirm(message, Globalize.translate('HeaderDeleteFile'), function (confirmResult) {
require(['confirm'], function (confirm) {
if (confirmResult) {
confirm(message, Globalize.translate('HeaderDeleteFile')).then(function () {
Dashboard.showLoadingMsg();
@ -45,8 +45,7 @@
reloadItems(page);
}, onApiFailure);
}
});
});
}
@ -91,9 +90,9 @@
message += '<p>' + Globalize.translate('MessageSureYouWishToProceed') + '</p>';
Dashboard.confirm(message, Globalize.translate('HeaderOrganizeFile'), function (confirmResult) {
require(['confirm'], function (confirm) {
if (confirmResult) {
confirm(message, Globalize.translate('HeaderOrganizeFile')).then(function () {
Dashboard.showLoadingMsg();
@ -104,7 +103,7 @@
reloadItems(page);
}, onApiFailure);
}
});
});
}