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

update config

This commit is contained in:
Luke Pulverenti 2016-02-19 00:03:00 -05:00
parent 747d71e76d
commit cd06587514
9 changed files with 94 additions and 130 deletions

View file

@ -1,23 +1,19 @@
define(['paperdialoghelper', 'paper-input', 'paper-button', 'jqmcollapsible'], function (paperDialogHelper) {
define(['paperdialoghelper', 'paper-input', 'paper-button', 'jqmcollapsible', 'paper-checkbox'], function (paperDialogHelper) {
function renderLibrarySharingList(context, result) {
var folderHtml = '';
folderHtml += '<div data-role="controlgroup">';
folderHtml += '<div class="paperCheckboxList">';
folderHtml += result.Items.map(function (i) {
var currentHtml = '';
var id = 'chkShareFolder' + i.Id;
currentHtml += '<label for="' + id + '">' + i.Name + '</label>';
var isChecked = true;
var checkedHtml = isChecked ? ' checked="checked"' : '';
currentHtml += '<input data-mini="true" class="chkShareFolder" data-folderid="' + i.Id + '" type="checkbox" id="' + id + '"' + checkedHtml + ' />';
currentHtml += '<paper-checkbox class="chkShareFolder" data-folderid="' + i.Id + '" type="checkbox"' + checkedHtml + '>' + i.Name + '</paper-checkbox>';
return currentHtml;
@ -25,7 +21,7 @@
folderHtml += '</div>';
$('.librarySharingList', context).html(folderHtml).trigger('create');
context.querySelector('.librarySharingList').innerHTML = folderHtml;
}
function inviteUser(dlg) {
@ -34,7 +30,11 @@
ApiClient.getJSON(ApiClient.getUrl("Channels", {})).then(function (channelsResult) {
var shareExcludes = $(".chkShareFolder:checked", dlg).get().map(function (i) {
var shareExcludes = $(".chkShareFolder", dlg).get().filter(function (i) {
return i.checked;
}).map(function (i) {
return i.getAttribute('data-folderid');
});