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) {
|
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>';
|
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));
|
LibraryMenu.setTitle(Globalize.translate(titleKey));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mainDrawerButton = document.querySelector('.mainDrawerButton');
|
||||||
|
|
||||||
|
if (mainDrawerButton) {
|
||||||
if (page.getAttribute('data-menubutton') == 'false') {
|
if (page.getAttribute('data-menubutton') == 'false') {
|
||||||
document.querySelector('.mainDrawerButton').classList.add('hide');
|
mainDrawerButton.classList.add('hide');
|
||||||
} else {
|
} else {
|
||||||
document.querySelector('.mainDrawerButton').classList.remove('hide');
|
mainDrawerButton.classList.remove('hide');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isLibraryPage) {
|
if (isLibraryPage) {
|
||||||
|
@ -778,10 +782,13 @@
|
||||||
darkDrawer = true;
|
darkDrawer = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var drawer = document.querySelector('.mainDrawerPanel #drawer');
|
||||||
|
if (drawer) {
|
||||||
if (darkDrawer) {
|
if (darkDrawer) {
|
||||||
document.querySelector('.mainDrawerPanel #drawer').classList.add('darkDrawer');
|
drawer.classList.add('darkDrawer');
|
||||||
} else {
|
} else {
|
||||||
document.querySelector('.mainDrawerPanel #drawer').classList.remove('darkDrawer');
|
drawer.classList.remove('darkDrawer');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
updateBackButton(page);
|
updateBackButton(page);
|
||||||
|
@ -799,11 +806,13 @@
|
||||||
showBackButton = page.getAttribute('data-backbutton') == 'true';
|
showBackButton = page.getAttribute('data-backbutton') == 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (backButton) {
|
||||||
if (canGoBack && showBackButton) {
|
if (canGoBack && showBackButton) {
|
||||||
backButton.classList.remove('hide');
|
backButton.classList.remove('hide');
|
||||||
} else {
|
} else {
|
||||||
backButton.classList.add('hide');
|
backButton.classList.add('hide');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//Events.off(page, 'swiperight', onPageSwipeLeft);
|
//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!
|
// THIS FILE IS GENERATED - DO NOT EDIT!
|
||||||
/*global module:false, define:false*/
|
|
||||||
|
|
||||||
(function (define, undefined) {
|
(function() {
|
||||||
define(function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
var impl = {};
|
var impl = {};
|
||||||
|
|
||||||
|
@ -883,20 +880,9 @@
|
||||||
// should not be replaced by a completely new object - just overwrite existing methods
|
// should not be replaced by a completely new object - just overwrite existing methods
|
||||||
MobileDetect._impl = impl;
|
MobileDetect._impl = impl;
|
||||||
|
|
||||||
return MobileDetect;
|
window.MobileDetect = 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');
|
|
||||||
}
|
|
||||||
})());
|
|
||||||
|
|
||||||
(function (jQuery, window, undefined) {
|
(function (jQuery, window, undefined) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue