1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update schedules direct

This commit is contained in:
Luke Pulverenti 2015-08-15 16:33:53 -04:00
parent 7f44f00a69
commit 5060d1766f
8 changed files with 22 additions and 20 deletions

View file

@ -2,7 +2,7 @@
var currentDialogOptions;
function submitJob(userId, syncOptions, form) {
function submitJob(panel, userId, syncOptions, form) {
if (!userId) {
throw new Error('userId cannot be null');
@ -46,11 +46,12 @@
type: "POST",
url: ApiClient.getUrl("Sync/Jobs"),
data: JSON.stringify(options),
contentType: "application/json"
contentType: "application/json",
dataType: 'json'
}).done(function () {
$('.syncPanel').panel('close');
panel.panel('close');
$(window.SyncManager).trigger('jobsubmit');
Dashboard.alert(Globalize.translate('MessageSyncJobCreated'));
});
@ -256,7 +257,7 @@
$('form', elem).on('submit', function () {
submitJob(userId, options, this);
submitJob(elem, userId, options, this);
return false;
});