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:47:56 -05:00
parent 28d045d7fa
commit ec1c286c91
4 changed files with 13 additions and 19 deletions

View file

@ -2,10 +2,9 @@
function revoke(page, key) {
Dashboard.confirm(Globalize.translate('MessageConfirmRevokeApiKey'), Globalize.translate('HeaderConfirmRevokeApiKey'), function (result) {
if (result) {
require(['confirm'], function (confirm) {
confirm(Globalize.translate('MessageConfirmRevokeApiKey'), Globalize.translate('HeaderConfirmRevokeApiKey')).then(function () {
Dashboard.showLoadingMsg();
ApiClient.ajax({
@ -16,7 +15,7 @@
loadData(page);
});
}
});
});
}