From 79a7198bec0707255c4462507b0fe3c945ae9c20 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 8 Sep 2015 13:06:38 -0400 Subject: [PATCH] update page events --- dashboard-ui/scripts/nowplayingpage.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dashboard-ui/scripts/nowplayingpage.js b/dashboard-ui/scripts/nowplayingpage.js index ba06502209..c0174edace 100644 --- a/dashboard-ui/scripts/nowplayingpage.js +++ b/dashboard-ui/scripts/nowplayingpage.js @@ -740,7 +740,7 @@ }); } - $(document).on('pageinit', "#nowPlayingPage", function () { + pageIdOn('pageinit', "nowPlayingPage", function () { var page = this; @@ -768,7 +768,8 @@ updateCastIcon(page); }); - }).on('pagebeforeshow', "#nowPlayingPage", function () { + }); + pageIdOn('pagebeforeshow', "nowPlayingPage", function () { $(document.body).addClass('hiddenViewMenuBar').addClass('hiddenNowPlayingBar'); var page = this; @@ -787,7 +788,8 @@ updateCastIcon(page); - }).on('pagebeforehide', "#nowPlayingPage", function () { + }); + pageIdOn('pagebeforehide', "nowPlayingPage", function () { releaseCurrentPlayer();