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
a42596f118
commit
166a16b60d
11 changed files with 46 additions and 55 deletions
|
@ -4,9 +4,9 @@
|
|||
|
||||
function remove(page, index) {
|
||||
|
||||
Dashboard.confirm(Globalize.translate('MessageConfirmPathSubstitutionDeletion'), Globalize.translate('HeaderConfirmDeletion'), function (result) {
|
||||
require(['confirm'], function (confirm) {
|
||||
|
||||
if (result) {
|
||||
confirm(Globalize.translate('MessageConfirmPathSubstitutionDeletion'), Globalize.translate('HeaderConfirmDeletion')).then(function () {
|
||||
|
||||
ApiClient.getServerConfiguration().then(function (config) {
|
||||
|
||||
|
@ -17,11 +17,8 @@
|
|||
reload(page);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function addSubstitution(page, config) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue