mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
adjust sync defaults when sync is supported
This commit is contained in:
parent
d4abbd5560
commit
962908d145
2 changed files with 36 additions and 20 deletions
|
@ -8,23 +8,27 @@
|
|||
}
|
||||
|
||||
.btnNotificationsInner {
|
||||
color: #aaa;
|
||||
font-weight: 500;
|
||||
color: #fff;
|
||||
font-weight: 300;
|
||||
display: none;
|
||||
position: relative;
|
||||
top: -6px;
|
||||
padding: 5px 10px;
|
||||
border-radius: 1000px;
|
||||
}
|
||||
|
||||
.levelNormal {
|
||||
color: #4d90fe;
|
||||
background-color: #4d90fe;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.levelWarning {
|
||||
color: #FF7537;
|
||||
background-color: #FF7537;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.levelError {
|
||||
color: #d14836;
|
||||
background-color: #d14836;
|
||||
display: block;
|
||||
}
|
||||
|
||||
|
|
|
@ -99,7 +99,9 @@
|
|||
|
||||
html += targets.map(function (t) {
|
||||
|
||||
return '<option value="' + t.Id + '">' + t.Name + '</option>';
|
||||
var isSelected = t.Id == AppInfo.deviceId;
|
||||
var selectedHtml = isSelected ? ' selected="selected"' : '';
|
||||
return '<option' + selectedHtml + ' value="' + t.Id + '">' + t.Name + '</option>';
|
||||
|
||||
}).join('');
|
||||
html += '</select>';
|
||||
|
@ -134,15 +136,6 @@
|
|||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
if (dialogOptions.Options.indexOf('SyncNewContent') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div>';
|
||||
html += '<label for="chkSyncNewContent">' + Globalize.translate('OptionAutomaticallySyncNewContent') + '</label>';
|
||||
html += '<input type="checkbox" id="chkSyncNewContent" data-mini="true" checked="checked" />';
|
||||
html += '<div class="fieldDescription">' + Globalize.translate('OptionAutomaticallySyncNewContentHelp') + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
if (dialogOptions.Options.indexOf('UnwatchedOnly') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div>';
|
||||
|
@ -152,6 +145,22 @@
|
|||
html += '</div>';
|
||||
}
|
||||
|
||||
if (dialogOptions.Options.indexOf('SyncNewContent') != -1 ||
|
||||
dialogOptions.Options.indexOf('ItemLimit') != -1) {
|
||||
|
||||
html += '<br/>';
|
||||
html += '<div data-role="collapsible" data-mini="true">';
|
||||
html += '<h2>' + Globalize.translate('HeaderAdvanced') + '</h2>';
|
||||
html += '<div style="padding:0 0 1em;">';
|
||||
if (dialogOptions.Options.indexOf('SyncNewContent') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div>';
|
||||
html += '<label for="chkSyncNewContent">' + Globalize.translate('OptionAutomaticallySyncNewContent') + '</label>';
|
||||
html += '<input type="checkbox" id="chkSyncNewContent" data-mini="true" checked="checked" />';
|
||||
html += '<div class="fieldDescription">' + Globalize.translate('OptionAutomaticallySyncNewContentHelp') + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
if (dialogOptions.Options.indexOf('ItemLimit') != -1) {
|
||||
html += '<br/>';
|
||||
html += '<div>';
|
||||
|
@ -160,6 +169,9 @@
|
|||
html += '<div class="fieldDescription">' + Globalize.translate('LabelItemLimitHelp') + '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
}
|
||||
|
||||
//html += '</div>';
|
||||
//html += '</div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue