mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #1261 - Sync quality cannot be changed
This commit is contained in:
parent
55a3138b3b
commit
47720adffd
3 changed files with 10 additions and 9 deletions
|
@ -82,13 +82,12 @@
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
|
|
||||||
require(['paper-checkbox', 'paper-input', 'emby-collapsible'], function () {
|
require(['paper-checkbox', 'paper-input', 'emby-collapsible'], function () {
|
||||||
renderFormInternal(options);
|
renderFormInternal(options, resolve);
|
||||||
resolve();
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderFormInternal(options) {
|
function renderFormInternal(options, resolve) {
|
||||||
|
|
||||||
var elem = options.elem;
|
var elem = options.elem;
|
||||||
var dialogOptions = options.dialogOptions;
|
var dialogOptions = options.dialogOptions;
|
||||||
|
@ -189,7 +188,7 @@
|
||||||
|
|
||||||
$('#selectSyncTarget', elem).on('change', function () {
|
$('#selectSyncTarget', elem).on('change', function () {
|
||||||
|
|
||||||
loadQualityOptions(elem, this.value, options.dialogOptionsFn);
|
loadQualityOptions(elem, this.value, options.dialogOptionsFn).then(resolve);
|
||||||
|
|
||||||
}).trigger('change');
|
}).trigger('change');
|
||||||
|
|
||||||
|
@ -383,9 +382,9 @@
|
||||||
|
|
||||||
function loadQualityOptions(form, targetId, dialogOptionsFn) {
|
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 () {
|
}).on('pageshow', ".syncActivityPage", function () {
|
||||||
|
|
||||||
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
if (this.id == 'syncActivityPage') {
|
||||||
|
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
||||||
|
}
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
||||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
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) {
|
function renderJob(page, job, dialogOptions) {
|
||||||
|
|
||||||
|
@ -335,7 +335,7 @@
|
||||||
|
|
||||||
function loadJobInfo(page, job, jobItems) {
|
function loadJobInfo(page, job, jobItems) {
|
||||||
|
|
||||||
renderJob(page, job, _jobOptions);
|
//renderJob(page, job, _jobOptions);
|
||||||
renderJobItems(page, jobItems);
|
renderJobItems(page, jobItems);
|
||||||
Dashboard.hideLoadingMsg();
|
Dashboard.hideLoadingMsg();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue