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-09 22:41:29 -04:00
parent d08ee04bdb
commit 3e990981fe
4 changed files with 18 additions and 20 deletions

View file

@ -1,10 +1,10 @@
define(['jQuery'], function ($) {
define(['jQuery', 'emby-checkbox'], function ($) {
var notificationsConfigurationKey = "notifications";
function fillItems(elem, items, cssClass, idPrefix, currentList, isEnabledList) {
var html = '<div class="paperCheckboxList paperList" style="padding: .5em 1em;">';
var html = '<div class="checkboxList paperList" style="padding: .5em 1em;">';
html += items.map(function (u) {
@ -12,7 +12,7 @@
var checkedHtml = isChecked ? ' checked="checked"' : '';
return '<paper-checkbox class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '"' + checkedHtml + '>' + u.Name + '</paper-checkbox>';
return '<label><input is="emby-checkbox" class="' + cssClass + '" type="checkbox" data-itemid="' + u.Id + '"' + checkedHtml + '/><span>' + u.Name + '</span></label>';
}).join('');