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

support null image encoder

This commit is contained in:
Luke Pulverenti 2015-10-26 01:29:32 -04:00
parent 6000b2ee0f
commit b9ad8322dd
17 changed files with 214 additions and 44 deletions

View file

@ -240,7 +240,8 @@
setBackdrops: setBackdrops,
setBackdropUrl: setBackdropUrl,
setDefault: setDefault
setDefault: setDefault,
clear: clearBackdrop
};
})(jQuery, document);

View file

@ -1,7 +1,5 @@
(function ($, document) {
var view = LibraryBrowser.getDefaultItemsView('Poster', 'Poster');
var currentItem;
var data = {};
@ -25,7 +23,7 @@
pageData.query.Filters = "";
pageData.query.NameStartsWithOrGreater = '';
pageData.view = LibraryBrowser.getDefaultItemsView('Poster', 'Poster');
pageData.view = LibraryBrowser.getSavedView(key) || LibraryBrowser.getDefaultItemsView('Poster', 'Poster');
pageData.query.ParentId = getParameterByName('parentId');
LibraryBrowser.loadSavedQueryValues(key, pageData.query);

View file

@ -2048,7 +2048,7 @@
html += '<div class="cardOverlayTarget"></div>';
if (item.LocationType == "Offline" || item.LocationType == "Virtual") {
if (item.LocationType == "Virtual") {
if (options.showLocationTypeIndicator !== false) {
html += LibraryBrowser.getOfflineIndicatorHtml(item);
}

View file

@ -125,7 +125,7 @@
preferThumb: true,
shape: getThumbShape(),
overlayText: true,
showTitle: true,
showTitle: false,
lazy: true,
showDetailsMenu: true,
overlayPlayButton: true

View file

@ -60,7 +60,7 @@
items: result.Items,
shape: "square",
context: getParameterByName('context') || 'photos',
overlayText: tabIndex != 0,
overlayText: true,
lazy: true,
coverImage: true,
showTitle: tabIndex == 0,

View file

@ -244,6 +244,7 @@ var Dashboard = {
importCss: function (url) {
var originalUrl = url;
url += "?v=" + window.dashboardVersion;
if (!Dashboard.importedCss) {
@ -261,12 +262,21 @@ var Dashboard = {
} else {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('data-url', originalUrl);
link.setAttribute('type', 'text/css');
link.setAttribute('href', url);
document.head.appendChild(link);
}
},
removeStylesheet: function (url) {
var elem = document.querySelector('link[data-url=\'' + url + '\']');
if (elem) {
elem.parentNode.removeChild(elem);
}
},
showError: function (message) {
Dashboard.alert(message);

View file

@ -90,6 +90,12 @@
$('.deviceAccess', page).show().html(html).trigger('create');
$('#chkEnableAllDevices', page).checked(user.Policy.EnableAllDevices).checkboxradio('refresh').trigger('change');
if (user.Policy.IsAdministrator) {
page.querySelector('.deviceAccessContainer').classList.add('hide');
} else {
page.querySelector('.deviceAccessContainer').classList.remove('hide');
}
}
function loadUser(page, user, loggedInUser, mediaFolders, channels, devices) {