mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
continue jquery removal
This commit is contained in:
parent
1fba8135db
commit
3128b05f14
15 changed files with 115 additions and 103 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['imageLoader', 'layoutManager', 'jQuery'], function (imageLoader, layoutManager, $) {
|
||||
define(['imageLoader', 'layoutManager', 'viewManager'], function (imageLoader, layoutManager, viewManager) {
|
||||
|
||||
var mainDrawerPanel = document.querySelector('.mainDrawerPanel');
|
||||
|
||||
|
@ -420,7 +420,7 @@
|
|||
|
||||
var pageIds = link.getAttribute('data-pageids');
|
||||
if (pageIds) {
|
||||
selected = pageIds.split(',').indexOf($.mobile.activePage.id) != -1
|
||||
selected = pageIds.split(',').indexOf(viewManager.currentView().id) != -1
|
||||
}
|
||||
|
||||
if (selected) {
|
||||
|
@ -737,14 +737,12 @@
|
|||
|
||||
var html = title;
|
||||
|
||||
if (window.$ && $.mobile) {
|
||||
var page = $.mobile.activePage;
|
||||
if (page) {
|
||||
var helpUrl = page.getAttribute('data-helpurl');
|
||||
var page = viewManager.currentView();
|
||||
if (page) {
|
||||
var helpUrl = page.getAttribute('data-helpurl');
|
||||
|
||||
if (helpUrl) {
|
||||
html += '<a href="' + helpUrl + '" target="_blank" class="clearLink" style="margin-left:2em;" title="' + Globalize.translate('ButtonHelp') + '"><paper-button class="accent" style="margin:0;font-weight:normal;font-size:13px;padding:.25em;display:flex;align-items:center;"><iron-icon icon="info"></iron-icon><span>' + Globalize.translate('ButtonHelp') + '</span></paper-button></a>';
|
||||
}
|
||||
if (helpUrl) {
|
||||
html += '<a href="' + helpUrl + '" target="_blank" class="clearLink" style="margin-left:2em;" title="' + Globalize.translate('ButtonHelp') + '"><paper-button class="accent" style="margin:0;font-weight:normal;font-size:13px;padding:.25em;display:flex;align-items:center;"><iron-icon icon="info"></iron-icon><span>' + Globalize.translate('ButtonHelp') + '</span></paper-button></a>';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1078,9 +1076,7 @@
|
|||
var admin = false;
|
||||
|
||||
if (!page) {
|
||||
if (window.$ && window.$.mobile) {
|
||||
page = $.mobile.activePage;
|
||||
}
|
||||
page = viewManager.currentView();
|
||||
}
|
||||
|
||||
if (page && page.classList.contains('type-interior')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue