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

update forms

This commit is contained in:
Luke Pulverenti 2016-06-14 00:06:57 -04:00
parent acefeed732
commit 3e3a7b12d6
8 changed files with 39 additions and 26 deletions

View file

@ -1083,8 +1083,8 @@
cssClass += ' checkedInitial';
}
var checkedAttribute = isChecked ? ' checked' : '';
itemSelectionPanel.innerHTML = '<paper-checkbox class="' + cssClass + '"' + checkedAttribute + '></paper-checkbox>';
var chkItemSelect = itemSelectionPanel.querySelector('paper-checkbox');
itemSelectionPanel.innerHTML = '<label class="checkboxContainer"><input type="checkbox" is="emby-checkbox" class="' + cssClass + '"' + checkedAttribute + '/><span></span></label>>';
var chkItemSelect = itemSelectionPanel.querySelector('.chkItemSelect');
chkItemSelect.addEventListener('change', onSelectionChange);
}
}
@ -1145,7 +1145,7 @@
function showSelections(initialCard) {
require(['paper-checkbox'], function () {
require(['emby-checkbox'], function () {
var cards = document.querySelectorAll('.card');
for (var i = 0, length = cards.length; i < length; i++) {
showSelection(cards[i], initialCard == cards[i]);

View file

@ -119,7 +119,7 @@
function showActivePlayerMenu(playerInfo) {
require(['dialogHelper', 'paper-checkbox', ], function (dialogHelper) {
require(['dialogHelper', 'emby-checkbox', 'emby-button'], function (dialogHelper) {
showActivePlayerMenuInternal(dialogHelper, playerInfo);
});
}
@ -147,10 +147,11 @@
if (playerInfo.supportedCommands.indexOf('DisplayContent') != -1) {
html += '<div>';
html += '<label class="checkboxContainer" style="margin-bottom:0;">';
var checkedHtml = MediaController.enableDisplayMirroring() ? ' checked' : '';
html += '<paper-checkbox class="chkMirror"' + checkedHtml + '>' + Globalize.translate('OptionEnableDisplayMirroring') + '</paper-checkbox>';
html += '</div>';
html += '<input type="checkbox" is="emby-checkbox" class="chkMirror"' + checkedHtml + '/>';
html += '<span>' + Globalize.translate('OptionEnableDisplayMirroring') + '</span>';
html += '</label>';
}
html += '</div>';

View file

@ -2,7 +2,7 @@
function loadForm(page, user) {
page.querySelector('#txtSyncPath').value = appSettings.syncPath();
page.querySelector('#txtSyncPath').value = appSettings.syncPath() || '';
page.querySelector('#chkWifi').checked = appSettings.syncOnlyOnWifi();
var uploadServers = appSettings.cameraUploadServers();
@ -10,7 +10,7 @@
page.querySelector('.uploadServerList').innerHTML = ConnectionManager.getSavedServers().map(function (s) {
var checkedHtml = uploadServers.indexOf(s.Id) == -1 ? '' : ' checked';
var html = '<paper-checkbox' + checkedHtml + ' class="chkUploadServer" data-id="' + s.Id + '">' + s.Name + '</paper-checkbox>';
var html = '<label><input type="checkbox" is="emby-checkbox"' + checkedHtml + ' class="chkUploadServer" data-id="' + s.Id + '"/><span>' + s.Name + '</span></label>';
return html;