fixes #1261 - Sync quality cannot be changed

This commit is contained in:
Luke Pulverenti 2016-04-16 01:05:34 -04:00
parent 55a3138b3b
commit 47720adffd
3 changed files with 10 additions and 9 deletions

View File

@ -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);
});
}

View File

@ -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) {

View File

@ -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();
}