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

switch to emby components

This commit is contained in:
Luke Pulverenti 2016-08-20 14:34:30 -04:00
parent 5c12589db7
commit a1b46992f0
4 changed files with 40 additions and 36 deletions

View file

@ -1,12 +1,12 @@
define(['jQuery'], function ($) {
define(['jQuery', 'fnchecked', 'emby-checkbox'], function ($) {
function loadMediaFolders(page, mediaFolders) {
var html = '';
html += '<div class="paperListLabel">' + Globalize.translate('HeaderLibraries') + '</div>';
html += '<h3 class="checkboxListLabel">' + Globalize.translate('HeaderLibraries') + '</h3>';
html += '<div class="paperCheckboxList paperList" style="padding:.5em 1em;">';
html += '<div class="checkboxList paperList" style="padding:.5em 1em;">';
for (var i = 0, length = mediaFolders.length; i < length; i++) {
@ -14,7 +14,7 @@
var checkedAttribute = ' checked="checked"';
html += '<paper-checkbox class="chkFolder" data-id="' + folder.Id + '"' + checkedAttribute + '>' + folder.Name + '</paper-checkbox>';
html += '<label><input type="checkbox" is="emby-checkbox" class="chkFolder" data-id="' + folder.Id + '"' + checkedAttribute + '/><span>' + folder.Name + '</span></label>';
}
html += '</div>';
@ -28,9 +28,9 @@
var html = '';
html += '<div class="paperListLabel">' + Globalize.translate('HeaderChannels') + '</div>';
html += '<h3 class="checkboxListLabel">' + Globalize.translate('HeaderChannels') + '</h3>';
html += '<div class="paperCheckboxList paperList" style="padding:.5em 1em;">';
html += '<div class="checkboxList paperList" style="padding:.5em 1em;">';
for (var i = 0, length = channels.length; i < length; i++) {
@ -38,7 +38,7 @@
var checkedAttribute = ' checked="checked"';
html += '<paper-checkbox class="chkChannel" data-id="' + folder.Id + '"' + checkedAttribute + '>' + folder.Name + '</paper-checkbox>';
html += '<label><input type="checkbox" is="emby-checkbox" class="chkChannel" data-id="' + folder.Id + '"' + checkedAttribute + '/><span>' + folder.Name + '</span></label>';
}
html += '</div>';