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

@ -80,9 +80,9 @@
function deleteProfile(page, id) {
Dashboard.confirm(Globalize.translate('MessageConfirmProfileDeletion'), Globalize.translate('HeaderConfirmProfileDeletion'), function (result) {
require(['confirm'], function (confirm) {
if (result) {
confirm(Globalize.translate('MessageConfirmProfileDeletion'), Globalize.translate('HeaderConfirmProfileDeletion')).then(function () {
Dashboard.showLoadingMsg();
@ -96,10 +96,8 @@
loadProfiles(page);
});
}
});
});
}
$(document).on('pageshow', "#dlnaProfilesPage", function () {