mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
3.0.5666.8
This commit is contained in:
parent
3e5c071ec0
commit
dfacfaf79f
3 changed files with 873 additions and 881 deletions
|
@ -2484,9 +2484,6 @@
|
|||
getUserDataButtonHtml: function (method, itemId, btnCssClass, icon, tooltip) {
|
||||
|
||||
return '<paper-icon-button data-itemid="' + itemId + '" icon="' + icon + '" class="' + btnCssClass + '" onclick="LibraryBrowser.' + method + '(this);return false;"></paper-icon-button>';
|
||||
btnCssClass += " imageButton";
|
||||
|
||||
return '<button data-itemid="' + itemId + '" class="' + btnCssClass + '" type="button" onclick="LibraryBrowser.' + method + '(this);return false;" title="' + tooltip + '" data-role="none"><i class="fa ' + icon + '"></i></button>';
|
||||
|
||||
},
|
||||
|
||||
|
|
|
@ -736,10 +736,14 @@
|
|||
LibraryMenu.setTitle(Globalize.translate(titleKey));
|
||||
}
|
||||
|
||||
var mainDrawerButton = document.querySelector('.mainDrawerButton');
|
||||
|
||||
if (mainDrawerButton) {
|
||||
if (page.getAttribute('data-menubutton') == 'false') {
|
||||
document.querySelector('.mainDrawerButton').classList.add('hide');
|
||||
mainDrawerButton.classList.add('hide');
|
||||
} else {
|
||||
document.querySelector('.mainDrawerButton').classList.remove('hide');
|
||||
mainDrawerButton.classList.remove('hide');
|
||||
}
|
||||
}
|
||||
|
||||
if (isLibraryPage) {
|
||||
|
@ -778,10 +782,13 @@
|
|||
darkDrawer = true;
|
||||
}
|
||||
|
||||
var drawer = document.querySelector('.mainDrawerPanel #drawer');
|
||||
if (drawer) {
|
||||
if (darkDrawer) {
|
||||
document.querySelector('.mainDrawerPanel #drawer').classList.add('darkDrawer');
|
||||
drawer.classList.add('darkDrawer');
|
||||
} else {
|
||||
document.querySelector('.mainDrawerPanel #drawer').classList.remove('darkDrawer');
|
||||
drawer.classList.remove('darkDrawer');
|
||||
}
|
||||
}
|
||||
|
||||
updateBackButton(page);
|
||||
|
@ -799,11 +806,13 @@
|
|||
showBackButton = page.getAttribute('data-backbutton') == 'true';
|
||||
}
|
||||
|
||||
if (backButton) {
|
||||
if (canGoBack && showBackButton) {
|
||||
backButton.classList.remove('hide');
|
||||
} else {
|
||||
backButton.classList.add('hide');
|
||||
}
|
||||
}
|
||||
|
||||
//Events.off(page, 'swiperight', onPageSwipeLeft);
|
||||
|
||||
|
|
22
dashboard-ui/thirdparty/browser.js
vendored
22
dashboard-ui/thirdparty/browser.js
vendored
|
@ -1,9 +1,6 @@
|
|||
// THIS FILE IS GENERATED - DO NOT EDIT!
|
||||
/*global module:false, define:false*/
|
||||
|
||||
(function (define, undefined) {
|
||||
define(function () {
|
||||
'use strict';
|
||||
(function() {
|
||||
|
||||
var impl = {};
|
||||
|
||||
|
@ -883,20 +880,9 @@
|
|||
// should not be replaced by a completely new object - just overwrite existing methods
|
||||
MobileDetect._impl = impl;
|
||||
|
||||
return MobileDetect;
|
||||
}); // end of call of define()
|
||||
})((function (undefined) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
return define;
|
||||
} else if (typeof module !== 'undefined' && module.exports) {
|
||||
return function (factory) { module.exports = factory(); };
|
||||
} else if (typeof window !== 'undefined') {
|
||||
return function (factory) { window.MobileDetect = factory(); };
|
||||
} else {
|
||||
// please file a bug if you get this error!
|
||||
throw new Error('unknown environment');
|
||||
}
|
||||
})());
|
||||
window.MobileDetect = MobileDetect;
|
||||
|
||||
})();
|
||||
|
||||
(function (jQuery, window, undefined) {
|
||||
"use strict";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue