mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce uses of mobile.activepage
This commit is contained in:
parent
efecb676cb
commit
45063b063e
6 changed files with 97 additions and 113 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['scrollHelper', 'appSettings', 'appStorage', 'apphost', 'datetime', 'itemHelper', 'mediaInfo', 'scrollStyles'], function (scrollHelper, appSettings, appStorage, appHost, datetime, itemHelper, mediaInfo) {
|
||||
define(['scrollHelper', 'viewManager', 'appSettings', 'appStorage', 'apphost', 'datetime', 'itemHelper', 'mediaInfo', 'scrollStyles'], function (scrollHelper, viewManager, appSettings, appStorage, appHost, datetime, itemHelper, mediaInfo) {
|
||||
|
||||
function parentWithClass(elem, className) {
|
||||
|
||||
|
@ -381,9 +381,7 @@
|
|||
|
||||
if (window.location.href.toLowerCase().indexOf(url.toLowerCase()) != -1) {
|
||||
|
||||
if (window.$) {
|
||||
afterNavigate.call($.mobile.activePage);
|
||||
}
|
||||
afterNavigate.call(viewManager.currentView());
|
||||
} else {
|
||||
|
||||
pageClassOn('pagebeforeshow', 'page', afterNavigate);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue