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

update page events

This commit is contained in:
Luke Pulverenti 2015-09-08 13:06:38 -04:00
parent 467dc13089
commit 79a7198bec

View file

@ -740,7 +740,7 @@
}); });
} }
$(document).on('pageinit', "#nowPlayingPage", function () { pageIdOn('pageinit', "nowPlayingPage", function () {
var page = this; var page = this;
@ -768,7 +768,8 @@
updateCastIcon(page); updateCastIcon(page);
}); });
}).on('pagebeforeshow', "#nowPlayingPage", function () { });
pageIdOn('pagebeforeshow', "nowPlayingPage", function () {
$(document.body).addClass('hiddenViewMenuBar').addClass('hiddenNowPlayingBar'); $(document.body).addClass('hiddenViewMenuBar').addClass('hiddenNowPlayingBar');
var page = this; var page = this;
@ -787,7 +788,8 @@
updateCastIcon(page); updateCastIcon(page);
}).on('pagebeforehide', "#nowPlayingPage", function () { });
pageIdOn('pagebeforehide', "nowPlayingPage", function () {
releaseCurrentPlayer(); releaseCurrentPlayer();