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

update detail screen

This commit is contained in:
Luke Pulverenti 2016-04-08 22:30:22 -04:00
parent 2e9653b4ca
commit d9299a0a48
4 changed files with 10 additions and 43 deletions

View file

@ -192,7 +192,8 @@
modal: false,
autoFocus: false,
entryAnimationDuration: 160,
exitAnimationDuration: 160
exitAnimationDuration: 160,
enableHistory: false
});
dlg.classList.add('ui-body-a');
@ -226,21 +227,13 @@
dlg.innerHTML = html;
document.body.appendChild(dlg);
var destination;
dlg.addEventListener('click', function (e) {
var link = parentWithTag(e.target, 'A');
if (link) {
destination = link.href;
dialogHelper.close(dlg);
e.preventDefault();
return false;
}
});
dialogHelper.open(dlg).then(function () {
if (destination) {
Dashboard.navigate(destination);
}
});
dialogHelper.open(dlg);
});
}