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

update components

This commit is contained in:
Luke Pulverenti 2016-04-28 23:31:52 -04:00
parent 4f5766509c
commit c6e1a3e747
6 changed files with 15 additions and 17 deletions

View file

@ -24,8 +24,6 @@
function onBackCommand(e) {
if (e.detail.command == 'back') {
inputManager.off(dlg, onBackCommand);
self.closedByBack = true;
closeDialog(dlg);
e.preventDefault();
@ -34,6 +32,9 @@
function onDialogClosed() {
inputManager.off(dlg, onBackCommand);
window.removeEventListener('popstate', onHashChange);
removeBackdrop(dlg);
dlg.classList.remove('opened');
@ -41,9 +42,6 @@
document.body.classList.remove('noScroll');
}
window.removeEventListener('popstate', onHashChange);
inputManager.off(dlg, onBackCommand);
if (!self.closedByBack && isHistoryEnabled(dlg)) {
var state = history.state || {};
if (state.dialogId == hash) {