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:
parent
09c7da7d48
commit
68e71b78db
17 changed files with 121 additions and 79 deletions
|
@ -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);
|
Loading…
Add table
Add a link
Reference in a new issue