mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix device dialog
This commit is contained in:
parent
759d707b7e
commit
ad97f736bf
1 changed files with 7 additions and 4 deletions
|
@ -178,10 +178,13 @@
|
|||
|
||||
var destination = '';
|
||||
|
||||
dlg.querySelector('.btnRemoteControl').addEventListener('click', function () {
|
||||
destination = 'nowplaying.html';
|
||||
dialogHelper.close(dlg);
|
||||
});
|
||||
var btnRemoteControl = dlg.querySelector('.btnRemoteControl');
|
||||
if (btnRemoteControl) {
|
||||
btnRemoteControl.addEventListener('click', function () {
|
||||
destination = 'nowplaying.html';
|
||||
dialogHelper.close(dlg);
|
||||
});
|
||||
}
|
||||
|
||||
dlg.querySelector('.btnDisconnect').addEventListener('click', function () {
|
||||
MediaController.disconnectFromPlayer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue