mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply suggestions
This commit is contained in:
parent
e7b87c106f
commit
6030e9677e
2 changed files with 1 additions and 23 deletions
|
@ -311,21 +311,6 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function enableHistory() {
|
|
||||||
|
|
||||||
// shows status bar on navigation
|
|
||||||
if (browser.xboxOne) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Does not support history
|
|
||||||
if (browser.orsay) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
function enableNativeHistory() {
|
function enableNativeHistory() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -525,9 +510,7 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
|
||||||
if (!document.querySelector('.dialogContainer') && startPages.indexOf(curr.type) !== -1) {
|
if (!document.querySelector('.dialogContainer') && startPages.indexOf(curr.type) !== -1) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (enableHistory()) {
|
|
||||||
return history.length > 1;
|
|
||||||
}
|
|
||||||
return (page.len || 0) > 0;
|
return (page.len || 0) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -872,11 +872,6 @@ define(['browser', 'layoutManager', 'dom', 'focusManager', 'ResizeObserver', 'sc
|
||||||
if (item === undefined) {
|
if (item === undefined) {
|
||||||
this.slideTo(this._pos[location], immediate);
|
this.slideTo(this._pos[location], immediate);
|
||||||
} else {
|
} else {
|
||||||
if (!transform) {
|
|
||||||
item.scrollIntoView();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var itemPos = this.getPos(item);
|
var itemPos = this.getPos(item);
|
||||||
|
|
||||||
if (itemPos) {
|
if (itemPos) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue