1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

begin rework of image editor

This commit is contained in:
Luke Pulverenti 2015-09-17 12:04:04 -04:00
parent 7ea4d0b4c9
commit 5bccc1840e
53 changed files with 965 additions and 787 deletions

View file

@ -1048,22 +1048,16 @@ $.fn.createHoverTouch = function () {
(function () {
var backUrl;
var isCurrentNavBack = false;
pageClassOn('pagebeforeshow', "page", function () {
if (getWindowUrl() != backUrl) {
backUrl = null;
}
});
$(window).on("popstate", function () {
backUrl = getWindowUrl();
$(window).on("navigate", function (e, data) {
data = data.state || {};
isCurrentNavBack = data.direction == 'back';
});
function isBack() {
return backUrl == getWindowUrl();
return isCurrentNavBack;
}
window.NavHelper = {