1
0
Fork 0
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:
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);
});
}