update channel streams
This commit is contained in:
parent
a878877550
commit
6dfdbb8075
10 changed files with 20 additions and 16 deletions
|
@ -400,6 +400,11 @@
|
|||
|
||||
updateEditorNode(this, item);
|
||||
|
||||
}).on('pagebeforeshow', ".metadataEditorPage", function () {
|
||||
|
||||
Dashboard.importCss('css/metadataeditor.css');
|
||||
window.MetadataEditor = new metadataEditor();
|
||||
|
||||
}).on('pagebeforeshow', ".metadataEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -425,11 +430,6 @@
|
|||
|
||||
});
|
||||
|
||||
}).on('pageinit', ".metadataEditorPage", function () {
|
||||
|
||||
Dashboard.importCss('css/metadataeditor.css');
|
||||
window.MetadataEditor = new metadataEditor();
|
||||
|
||||
}).on('pagebeforehide', ".metadataEditorPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
|
@ -2450,7 +2450,9 @@
|
|||
showLayoutMenu: function (button, currentLayout) {
|
||||
|
||||
// Add banner and list once all screens support them
|
||||
var views = ['List', 'Poster', 'PosterCard', 'Thumb', 'ThumbCard'];
|
||||
var views = button.getAttribute('data-layouts');
|
||||
|
||||
views = views ? views.split(',') : ['List', 'Poster', 'PosterCard', 'Thumb', 'ThumbCard'];
|
||||
|
||||
var menuItems = views.map(function (v) {
|
||||
return {
|
||||
|
@ -2525,7 +2527,7 @@
|
|||
|
||||
if (options.addLayoutButton) {
|
||||
|
||||
html += '<paper-button raised class="subdued notext btnChangeLayout" onclick="LibraryBrowser.showLayoutMenu(this, \'' + (options.currentLayout || '') + '\');"><iron-icon icon="view-comfy"></iron-icon></paper-button>';
|
||||
html += '<paper-button raised class="subdued notext btnChangeLayout" data-layouts="' + (options.layouts || '') + '" onclick="LibraryBrowser.showLayoutMenu(this, \'' + (options.currentLayout || '') + '\');"><iron-icon icon="view-comfy"></iron-icon></paper-button>';
|
||||
}
|
||||
|
||||
if (options.sortButton) {
|
||||
|
|
|
@ -66,7 +66,8 @@
|
|||
addLayoutButton: true,
|
||||
viewIcon: 'filter-list',
|
||||
sortButton: true,
|
||||
currentLayout: view
|
||||
currentLayout: view,
|
||||
layouts: 'List,Poster,PosterCard,Thumb,ThumbCard,Timeline'
|
||||
});
|
||||
|
||||
page.querySelector('.listTopPaging').innerHTML = pagingHtml;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue