1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

reduce use of paper-checkbox

This commit is contained in:
Luke Pulverenti 2016-09-11 11:30:04 -04:00
parent 9b12ffa6d7
commit 13096410b0
3 changed files with 39 additions and 23 deletions

View file

@ -1,4 +1,4 @@
define(['jQuery'], function ($) { define(['jQuery', 'fnchecked', 'emby-checkbox'], function ($) {
function loadPage(page, config) { function loadPage(page, config) {

View file

@ -20,34 +20,50 @@
</div> </div>
<div class="fieldDescription">${LabelMetadataPathHelp}</div> <div class="fieldDescription">${LabelMetadataPathHelp}</div>
</div> </div>
<div> <div class="checkboxContainer checkboxContainer-withDescription">
<paper-checkbox id="chkSaveMetadataHidden">${OptionSaveMetadataAsHidden}</paper-checkbox> <label>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionSaveMetadataAsHiddenHelp}</div> <input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkSaveMetadataHidden" data-filter="Sunday" />
<br /> <span>${OptionSaveMetadataAsHidden}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionSaveMetadataAsHiddenHelp}</div>
</div> </div>
<br />
<div is="emby-collapse" title="${HeaderPeople}"> <div is="emby-collapse" title="${HeaderPeople}">
<div class="collapseContent"> <div class="collapseContent">
<br /> <br />
<div> <div>
<div class="paperListLabel">${HeaderDownloadPeopleMetadataFor}</div> <h3 class="checkboxListLabel">${HeaderDownloadPeopleMetadataFor}</h3>
<div class="paperCheckboxList"> <div class="checkboxList">
<paper-checkbox id="chkPeopleActors">${OptionActors}</paper-checkbox> <label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleActors" data-filter="Sunday" />
<paper-checkbox id="chkPeopleComposers">${OptionComposers}</paper-checkbox> <span>${OptionActors}</span>
</label>
<paper-checkbox id="chkPeopleDirectors">${OptionDirectors}</paper-checkbox> <label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleComposers" data-filter="Sunday" />
<paper-checkbox id="chkPeopleGuestStars">${OptionGuestStars}</paper-checkbox> <span>${OptionComposers}</span>
</label>
<paper-checkbox id="chkPeopleProducers">${OptionProducers}</paper-checkbox> <label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleDirectors" data-filter="Sunday" />
<paper-checkbox id="chkPeopleWriters">${OptionWriters}</paper-checkbox> <span>${OptionDirectors}</span>
</label>
<paper-checkbox id="chkPeopleOthers">${OptionOthers}</paper-checkbox> <label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleGuestStars" data-filter="Sunday" />
<span>${OptionGuestStars}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleProducers" data-filter="Sunday" />
<span>${OptionProducers}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleWriters" data-filter="Sunday" />
<span>${OptionWriters}</span>
</label>
<label>
<input type="checkbox" is="emby-checkbox" class="chkAirDays" id="chkPeopleOthers" data-filter="Sunday" />
<span>${OptionOthers}</span>
</label>
</div> </div>
<div class="fieldDescription paperCheckboxFieldDescription">${HeaderDownloadPeopleMetadataForHelp}</div> <div class="fieldDescription checkboxFieldDescription">${HeaderDownloadPeopleMetadataForHelp}</div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -2121,7 +2121,7 @@ var AppInfo = {};
defineRoute({ defineRoute({
path: '/librarysettings.html', path: '/librarysettings.html',
dependencies: ['emby-collapse', 'emby-input', 'paper-checkbox', 'emby-button', 'emby-select'], dependencies: ['emby-collapse', 'emby-input', 'emby-button', 'emby-select'],
autoFocus: false, autoFocus: false,
roles: 'admin', roles: 'admin',
controller: 'dashboard/librarysettings' controller: 'dashboard/librarysettings'