mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
move paper dialog helper
This commit is contained in:
parent
54d014972b
commit
88bd9c7abb
18 changed files with 44 additions and 25 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
var currentDialogOptions;
|
||||
|
||||
function submitJob(dlg, userId, syncOptions, form) {
|
||||
function submitJob(dlg, userId, syncOptions, form, paperDialogHelper) {
|
||||
|
||||
if (!userId) {
|
||||
throw new Error('userId cannot be null');
|
||||
|
@ -51,7 +51,7 @@
|
|||
|
||||
}).then(function () {
|
||||
|
||||
PaperDialogHelper.close(dlg);
|
||||
paperDialogHelper.close(dlg);
|
||||
$(window.SyncManager).trigger('jobsubmit');
|
||||
Dashboard.alert(Globalize.translate('MessageSyncJobCreated'));
|
||||
});
|
||||
|
@ -216,7 +216,7 @@
|
|||
|
||||
function showSyncMenuInternal(options) {
|
||||
|
||||
require(['components/paperdialoghelper', 'paper-fab'], function (paperDialogHelper) {
|
||||
require(['paperdialoghelper', 'paper-fab'], function (paperDialogHelper) {
|
||||
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
|
@ -271,7 +271,7 @@
|
|||
|
||||
$('form', dlg).on('submit', function () {
|
||||
|
||||
submitJob(dlg, userId, options, this);
|
||||
submitJob(dlg, userId, options, this, paperDialogHelper);
|
||||
return false;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue