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:
parent
2e9653b4ca
commit
d9299a0a48
4 changed files with 10 additions and 43 deletions
|
@ -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);
|
||||
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue