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:
parent
ec1c286c91
commit
a42596f118
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue