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);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue