mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sync fixes
This commit is contained in:
parent
819deb6713
commit
cb7439589b
2 changed files with 17 additions and 12 deletions
|
@ -88,6 +88,9 @@
|
|||
|
||||
html += '<div>';
|
||||
html += '<label for="selectSyncTarget">' + Globalize.translate('LabelSyncTo') + '</label>';
|
||||
if (options.readOnlySyncTarget) {
|
||||
html += '<input type="text" id="selectSyncTarget" readonly="readonly" />';
|
||||
} else {
|
||||
html += '<select id="selectSyncTarget" required="required" data-mini="true">';
|
||||
|
||||
html += targets.map(function (t) {
|
||||
|
@ -100,6 +103,7 @@
|
|||
html += '<div class="fieldDescription">' + Globalize.translate('LabelSyncNoTargetsHelp') + '</div>';
|
||||
html += '<div class="fieldDescription"><a href="https://github.com/MediaBrowser/Wiki/wiki/Sync" target="_blank">' + Globalize.translate('ButtonLearnMore') + '</a></div>';
|
||||
}
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
html += '<div class="fldProfile" style="display:none;">';
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
elem: $('.formFields', page),
|
||||
dialogOptions: dialogOptions,
|
||||
dialogOptionsFn: getTargetDialogOptionsFn(dialogOptions),
|
||||
showName: true
|
||||
showName: true,
|
||||
readOnlySyncTarget: true
|
||||
});
|
||||
fillJobValues(page, job, dialogOptions);
|
||||
}
|
||||
|
@ -265,7 +266,7 @@
|
|||
})[0];
|
||||
var targetName = target ? target.Name : '';
|
||||
|
||||
$('#txtTargetName', page).val(targetName);
|
||||
$('#selectSyncTarget', page).val(targetName);
|
||||
}
|
||||
|
||||
var _jobOptions;
|
||||
|
@ -319,10 +320,10 @@
|
|||
|
||||
ApiClient.getJSON(ApiClient.getUrl('Sync/Jobs/' + id)).done(function (job) {
|
||||
|
||||
var quality = $('#selectQuality', form).val();
|
||||
var quality = $('#selectQuality', page).val();
|
||||
|
||||
if (quality == 'custom') {
|
||||
quality = $('#txtBitrate', form).val();
|
||||
quality = $('#txtBitrate', page).val();
|
||||
}
|
||||
|
||||
job.Name = $('#txtSyncJobName', page).val();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue