mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
fixes #1261 - Sync quality cannot be changed
This commit is contained in:
parent
55a3138b3b
commit
47720adffd
@ -82,13 +82,12 @@
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['paper-checkbox', 'paper-input', 'emby-collapsible'], function () {
|
||||
renderFormInternal(options);
|
||||
resolve();
|
||||
renderFormInternal(options, resolve);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function renderFormInternal(options) {
|
||||
function renderFormInternal(options, resolve) {
|
||||
|
||||
var elem = options.elem;
|
||||
var dialogOptions = options.dialogOptions;
|
||||
@ -189,7 +188,7 @@
|
||||
|
||||
$('#selectSyncTarget', elem).on('change', function () {
|
||||
|
||||
loadQualityOptions(elem, this.value, options.dialogOptionsFn);
|
||||
loadQualityOptions(elem, this.value, options.dialogOptionsFn).then(resolve);
|
||||
|
||||
}).trigger('change');
|
||||
|
||||
@ -383,9 +382,9 @@
|
||||
|
||||
function loadQualityOptions(form, targetId, dialogOptionsFn) {
|
||||
|
||||
dialogOptionsFn(targetId).then(function (options) {
|
||||
return dialogOptionsFn(targetId).then(function (options) {
|
||||
|
||||
renderTargetDialogOptions(form, options);
|
||||
return renderTargetDialogOptions(form, options);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -412,7 +412,9 @@
|
||||
|
||||
}).on('pageshow', ".syncActivityPage", function () {
|
||||
|
||||
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
||||
if (this.id == 'syncActivityPage') {
|
||||
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
||||
}
|
||||
var page = this;
|
||||
|
||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
define(['jQuery'], function ($) {
|
||||
define(['jQuery', 'paper-progress', 'paper-fab', 'paper-item-body', 'paper-icon-item', 'paper-icon-button'], function ($) {
|
||||
|
||||
function renderJob(page, job, dialogOptions) {
|
||||
|
||||
@ -335,7 +335,7 @@
|
||||
|
||||
function loadJobInfo(page, job, jobItems) {
|
||||
|
||||
renderJob(page, job, _jobOptions);
|
||||
//renderJob(page, job, _jobOptions);
|
||||
renderJobItems(page, jobItems);
|
||||
Dashboard.hideLoadingMsg();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user