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

move tv data

This commit is contained in:
Luke Pulverenti 2015-09-29 12:29:06 -04:00
parent 09c7da7d48
commit 68e71b78db
17 changed files with 121 additions and 79 deletions

View file

@ -26,10 +26,12 @@
}
dlg = null;
$(window).off('navigate', onHashChange);
if (enableHashChange()) {
$(window).off('navigate', onHashChange);
if (window.location.hash == '#' + hash) {
history.back();
if (window.location.hash == '#' + hash) {
history.back();
}
}
}
@ -42,9 +44,20 @@
Dashboard.onPopupOpen();
}
window.location.hash = hash;
if (enableHashChange()) {
$(window).on('navigate', onHashChange);
window.location.hash = hash;
$(window).on('navigate', onHashChange);
}
}
function enableHashChange() {
// It's not firing popstate in response to hashbang changes
if ($.browser.msie) {
return false;
}
return true;
}
function openWithHash(dlg, hash, lockDocumentScroll) {
@ -52,8 +65,18 @@
new paperDialogHashHandler(dlg, hash, lockDocumentScroll);
}
function close(dlg) {
if (enableHashChange()) {
history.back();
} else {
dlg.close();
}
}
globalScope.PaperDialogHelper = {
openWithHash: openWithHash
openWithHash: openWithHash,
close: close
};
})(this);