From 382dea3748386cbfb504053fb7b8d41795e08b83 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 1 Sep 2015 02:22:46 -0400 Subject: [PATCH] removed pagebeforeshowready --- dashboard-ui/scripts/appservices.js | 2 +- dashboard-ui/scripts/backdrops.js | 2 +- dashboard-ui/scripts/channelitems.js | 2 +- dashboard-ui/scripts/connectlogin.js | 2 +- dashboard-ui/scripts/edititemmetadata.js | 2 +- dashboard-ui/scripts/editorsidebar.js | 2 +- dashboard-ui/scripts/episodes.js | 2 +- dashboard-ui/scripts/gamegenrepage.js | 2 +- dashboard-ui/scripts/gamespage.js | 2 +- dashboard-ui/scripts/gamesrecommendedpage.js | 2 +- dashboard-ui/scripts/gamestudiospage.js | 2 +- dashboard-ui/scripts/gamesystemspage.js | 2 +- dashboard-ui/scripts/itemdetailpage.js | 2 +- dashboard-ui/scripts/itemlistpage.js | 2 +- dashboard-ui/scripts/librarybrowser.js | 4 ++-- dashboard-ui/scripts/librarylist.js | 2 +- dashboard-ui/scripts/librarymenu.js | 2 +- dashboard-ui/scripts/livetvitems.js | 2 +- dashboard-ui/scripts/livetvnewrecording.js | 2 +- dashboard-ui/scripts/livetvrecordinglist.js | 2 +- dashboard-ui/scripts/livetvseriestimer.js | 2 +- dashboard-ui/scripts/livetvtimer.js | 2 +- dashboard-ui/scripts/moviecollections.js | 2 +- dashboard-ui/scripts/musicalbumartists.js | 2 +- dashboard-ui/scripts/musicalbums.js | 2 +- dashboard-ui/scripts/musicartists.js | 2 +- dashboard-ui/scripts/musicgenres.js | 2 +- dashboard-ui/scripts/musicrecommended.js | 2 +- dashboard-ui/scripts/musicvideos.js | 2 +- dashboard-ui/scripts/nowplayingpage.js | 2 +- dashboard-ui/scripts/playlists.js | 2 +- dashboard-ui/scripts/secondaryitems.js | 2 +- dashboard-ui/scripts/selectserver.js | 2 +- dashboard-ui/scripts/site.js | 6 ------ dashboard-ui/scripts/songs.js | 2 +- dashboard-ui/scripts/tvgenres.js | 2 +- dashboard-ui/scripts/tvlatest.js | 2 +- dashboard-ui/scripts/tvpeople.js | 2 +- dashboard-ui/scripts/tvrecommended.js | 2 +- dashboard-ui/scripts/tvshows.js | 2 +- dashboard-ui/scripts/tvstudios.js | 2 +- dashboard-ui/scripts/tvupcoming.js | 2 +- dashboard-ui/scripts/useredit.js | 2 +- dashboard-ui/scripts/userpassword.js | 2 +- dashboard-ui/scripts/userprofilespage.js | 2 +- 45 files changed, 45 insertions(+), 51 deletions(-) diff --git a/dashboard-ui/scripts/appservices.js b/dashboard-ui/scripts/appservices.js index 2390cefe83..23335768b8 100644 --- a/dashboard-ui/scripts/appservices.js +++ b/dashboard-ui/scripts/appservices.js @@ -95,7 +95,7 @@ page.setAttribute('data-helpurl', 'https://github.com/MediaBrowser/Wiki/wiki/Notifications'); } - }).on('pagebeforeshowready', "#appServicesPage", function () { + }).on('pagebeforeshow', "#appServicesPage", function () { // This needs both events for the helpurl to get done at the right time diff --git a/dashboard-ui/scripts/backdrops.js b/dashboard-ui/scripts/backdrops.js index 40762c719e..5b551b0250 100644 --- a/dashboard-ui/scripts/backdrops.js +++ b/dashboard-ui/scripts/backdrops.js @@ -194,7 +194,7 @@ } } - Events.on(document, 'pagebeforeshowready', ".page", function () { + Events.on(document, 'pagebeforeshow', ".page", function () { var page = this; diff --git a/dashboard-ui/scripts/channelitems.js b/dashboard-ui/scripts/channelitems.js index ea69e6d251..14cc0519bf 100644 --- a/dashboard-ui/scripts/channelitems.js +++ b/dashboard-ui/scripts/channelitems.js @@ -254,7 +254,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#channelItemsPage", function () { + }).on('pagebeforeshow', "#channelItemsPage", function () { var page = this; var limit = LibraryBrowser.getDefaultPageSize(); diff --git a/dashboard-ui/scripts/connectlogin.js b/dashboard-ui/scripts/connectlogin.js index c56cf99758..6755513132 100644 --- a/dashboard-ui/scripts/connectlogin.js +++ b/dashboard-ui/scripts/connectlogin.js @@ -244,7 +244,7 @@ Dashboard.navigate('connectlogin.html?mode=connect'); }); - }).on('pagebeforeshowready', "#connectLoginPage", function () { + }).on('pagebeforeshow', "#connectLoginPage", function () { var page = this; diff --git a/dashboard-ui/scripts/edititemmetadata.js b/dashboard-ui/scripts/edititemmetadata.js index 0d5d23f8bf..8c455c537b 100644 --- a/dashboard-ui/scripts/edititemmetadata.js +++ b/dashboard-ui/scripts/edititemmetadata.js @@ -1519,7 +1519,7 @@ tabs.noSlide = true; tabs.noink = true; - $(ownerpage).on('pagebeforeshowready', function () { + $(ownerpage).on('pagebeforeshow', function () { var selected = tabs.selected; diff --git a/dashboard-ui/scripts/editorsidebar.js b/dashboard-ui/scripts/editorsidebar.js index 8b319a9f21..ebc7252c21 100644 --- a/dashboard-ui/scripts/editorsidebar.js +++ b/dashboard-ui/scripts/editorsidebar.js @@ -400,7 +400,7 @@ updateEditorNode(this, item); - }).on('pagebeforeshowready', ".metadataEditorPage", function () { + }).on('pagebeforeshow', ".metadataEditorPage", function () { var page = this; diff --git a/dashboard-ui/scripts/episodes.js b/dashboard-ui/scripts/episodes.js index bc254a2ffa..acd149f61b 100644 --- a/dashboard-ui/scripts/episodes.js +++ b/dashboard-ui/scripts/episodes.js @@ -318,7 +318,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#episodesPage", function () { + }).on('pagebeforeshow', "#episodesPage", function () { var page = this; query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/gamegenrepage.js b/dashboard-ui/scripts/gamegenrepage.js index 3129311e33..b11ce762a7 100644 --- a/dashboard-ui/scripts/gamegenrepage.js +++ b/dashboard-ui/scripts/gamegenrepage.js @@ -98,7 +98,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#gameGenresPage", function () { + }).on('pagebeforeshow', "#gameGenresPage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/gamespage.js b/dashboard-ui/scripts/gamespage.js index cbfa0ba8c3..cdde45d3a1 100644 --- a/dashboard-ui/scripts/gamespage.js +++ b/dashboard-ui/scripts/gamespage.js @@ -241,7 +241,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#gamesPage", function () { + }).on('pagebeforeshow', "#gamesPage", function () { var page = this; query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/gamesrecommendedpage.js b/dashboard-ui/scripts/gamesrecommendedpage.js index 6d82262f20..f709eaade0 100644 --- a/dashboard-ui/scripts/gamesrecommendedpage.js +++ b/dashboard-ui/scripts/gamesrecommendedpage.js @@ -1,6 +1,6 @@ (function ($, document) { - $(document).on('pagebeforeshowready', "#gamesRecommendedPage", function () { + $(document).on('pagebeforeshow', "#gamesRecommendedPage", function () { var parentId = LibraryMenu.getTopParentId(); var userId = Dashboard.getCurrentUserId(); diff --git a/dashboard-ui/scripts/gamestudiospage.js b/dashboard-ui/scripts/gamestudiospage.js index 7d1e88b1c1..e63bbf81ed 100644 --- a/dashboard-ui/scripts/gamestudiospage.js +++ b/dashboard-ui/scripts/gamestudiospage.js @@ -100,7 +100,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#gameStudiosPage", function () { + }).on('pagebeforeshow', "#gameStudiosPage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/gamesystemspage.js b/dashboard-ui/scripts/gamesystemspage.js index 03e461cd1c..b1268779d3 100644 --- a/dashboard-ui/scripts/gamesystemspage.js +++ b/dashboard-ui/scripts/gamesystemspage.js @@ -54,7 +54,7 @@ // Reset form values using the last used query } - $(document).on('pagebeforeshowready', "#gamesystemsPage", function () { + $(document).on('pagebeforeshow', "#gamesystemsPage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/itemdetailpage.js b/dashboard-ui/scripts/itemdetailpage.js index dc3bb59e1a..0ca822b80e 100644 --- a/dashboard-ui/scripts/itemdetailpage.js +++ b/dashboard-ui/scripts/itemdetailpage.js @@ -1800,7 +1800,7 @@ btnMore[i].icon = AppInfo.moreIcon; } - }).on('pagebeforeshowready', "#itemDetailPage", function () { + }).on('pagebeforeshow', "#itemDetailPage", function () { var page = this; diff --git a/dashboard-ui/scripts/itemlistpage.js b/dashboard-ui/scripts/itemlistpage.js index 4d3d959510..6366c83be6 100644 --- a/dashboard-ui/scripts/itemlistpage.js +++ b/dashboard-ui/scripts/itemlistpage.js @@ -258,7 +258,7 @@ $(page).on('click', '.mediaItem', onListItemClick); - }).on('pagebeforeshowready', "#itemListPage", function () { + }).on('pagebeforeshow', "#itemListPage", function () { var page = this; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index eb56544350..a66a4571fd 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -235,7 +235,7 @@ $('.libraryViewNav', ownerpage).removeClass('libraryViewNavWithMinHeight'); } - $(ownerpage).on('pagebeforeshowready', LibraryBrowser.onTabbedPageBeforeShowReady); + $(ownerpage).on('pagebeforeshow', LibraryBrowser.onTabbedpagebeforeshow); $(pages).on('iron-select', function () { @@ -251,7 +251,7 @@ }); }, - onTabbedPageBeforeShowReady: function () { + onTabbedpagebeforeshow: function () { var page = this; var tabs = page.querySelector('paper-tabs'); diff --git a/dashboard-ui/scripts/librarylist.js b/dashboard-ui/scripts/librarylist.js index b8b8c23dfa..b70ff6cd81 100644 --- a/dashboard-ui/scripts/librarylist.js +++ b/dashboard-ui/scripts/librarylist.js @@ -1244,7 +1244,7 @@ $(itemsContainers[i]).createCardMenus(); } - }).on('pagebeforeshowready', ".libraryPage", function () { + }).on('pagebeforeshow', ".libraryPage", function () { var page = this; diff --git a/dashboard-ui/scripts/librarymenu.js b/dashboard-ui/scripts/librarymenu.js index 449dddd452..0dc61791f0 100644 --- a/dashboard-ui/scripts/librarymenu.js +++ b/dashboard-ui/scripts/librarymenu.js @@ -780,7 +780,7 @@ } } - $(document).on('pagebeforeshowready', ".page", function () { + $(document).on('pagebeforeshow', ".page", function () { var page = this; diff --git a/dashboard-ui/scripts/livetvitems.js b/dashboard-ui/scripts/livetvitems.js index 26a6424b26..be605c6c34 100644 --- a/dashboard-ui/scripts/livetvitems.js +++ b/dashboard-ui/scripts/livetvitems.js @@ -140,7 +140,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#liveTvItemsPage", function () { + }).on('pagebeforeshow', "#liveTvItemsPage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/livetvnewrecording.js b/dashboard-ui/scripts/livetvnewrecording.js index 753874b1ac..f7dc648249 100644 --- a/dashboard-ui/scripts/livetvnewrecording.js +++ b/dashboard-ui/scripts/livetvnewrecording.js @@ -241,7 +241,7 @@ $('.liveTvNewRecordingForm').off('submit', onSubmit).on('submit', onSubmit); - }).on('pagebeforeshowready', "#liveTvNewRecordingPage", function () { + }).on('pagebeforeshow', "#liveTvNewRecordingPage", function () { var page = this; hideSeriesRecordingFields(page); diff --git a/dashboard-ui/scripts/livetvrecordinglist.js b/dashboard-ui/scripts/livetvrecordinglist.js index 04c3e74db1..70a6f65fdf 100644 --- a/dashboard-ui/scripts/livetvrecordinglist.js +++ b/dashboard-ui/scripts/livetvrecordinglist.js @@ -86,7 +86,7 @@ var page = this; - }).on('pagebeforeshowready', "#liveTvRecordingListPage", function () { + }).on('pagebeforeshow', "#liveTvRecordingListPage", function () { var page = this; diff --git a/dashboard-ui/scripts/livetvseriestimer.js b/dashboard-ui/scripts/livetvseriestimer.js index 857e5bc4c6..96a8a70019 100644 --- a/dashboard-ui/scripts/livetvseriestimer.js +++ b/dashboard-ui/scripts/livetvseriestimer.js @@ -272,7 +272,7 @@ $('.liveTvSeriesTimerForm').off('submit', onSubmit).on('submit', onSubmit); - }).on('pagebeforeshowready', "#liveTvSeriesTimerPage", function () { + }).on('pagebeforeshow', "#liveTvSeriesTimerPage", function () { var page = this; diff --git a/dashboard-ui/scripts/livetvtimer.js b/dashboard-ui/scripts/livetvtimer.js index e0e344ee46..43639746b6 100644 --- a/dashboard-ui/scripts/livetvtimer.js +++ b/dashboard-ui/scripts/livetvtimer.js @@ -113,7 +113,7 @@ $('.liveTvTimerForm').off('submit', onSubmit).on('submit', onSubmit); - }).on('pagebeforeshowready', "#liveTvTimerPage", function () { + }).on('pagebeforeshow', "#liveTvTimerPage", function () { var page = this; diff --git a/dashboard-ui/scripts/moviecollections.js b/dashboard-ui/scripts/moviecollections.js index 2e9937fa59..0a39056bb1 100644 --- a/dashboard-ui/scripts/moviecollections.js +++ b/dashboard-ui/scripts/moviecollections.js @@ -217,7 +217,7 @@ initPage(content); - }).on('pagebeforeshowready', "#boxsetsPage", function () { + }).on('pagebeforeshow', "#boxsetsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/musicalbumartists.js b/dashboard-ui/scripts/musicalbumartists.js index d98d3be6d5..458bf4acf9 100644 --- a/dashboard-ui/scripts/musicalbumartists.js +++ b/dashboard-ui/scripts/musicalbumartists.js @@ -220,7 +220,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#musicAlbumArtistsPage", function () { + }).on('pagebeforeshow', "#musicAlbumArtistsPage", function () { var page = this; var query = getQuery(); diff --git a/dashboard-ui/scripts/musicalbums.js b/dashboard-ui/scripts/musicalbums.js index 17393c65a1..e69b4aea53 100644 --- a/dashboard-ui/scripts/musicalbums.js +++ b/dashboard-ui/scripts/musicalbums.js @@ -278,7 +278,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#musicAlbumsPage", function () { + }).on('pagebeforeshow', "#musicAlbumsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/musicartists.js b/dashboard-ui/scripts/musicartists.js index 41379dc55d..287a4db071 100644 --- a/dashboard-ui/scripts/musicartists.js +++ b/dashboard-ui/scripts/musicartists.js @@ -214,7 +214,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#musicArtistsPage", function () { + }).on('pagebeforeshow', "#musicArtistsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/musicgenres.js b/dashboard-ui/scripts/musicgenres.js index dcf5e7c104..2576802d7b 100644 --- a/dashboard-ui/scripts/musicgenres.js +++ b/dashboard-ui/scripts/musicgenres.js @@ -118,7 +118,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#musicGenresPage", function () { + }).on('pagebeforeshow', "#musicGenresPage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/musicrecommended.js b/dashboard-ui/scripts/musicrecommended.js index 1208c69742..161bb3cd3f 100644 --- a/dashboard-ui/scripts/musicrecommended.js +++ b/dashboard-ui/scripts/musicrecommended.js @@ -186,7 +186,7 @@ }); } - $(document).on('pagebeforeshowready', "#musicRecommendedPage", function () { + $(document).on('pagebeforeshow', "#musicRecommendedPage", function () { var parentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/musicvideos.js b/dashboard-ui/scripts/musicvideos.js index 7bf9057302..6d2bd62633 100644 --- a/dashboard-ui/scripts/musicvideos.js +++ b/dashboard-ui/scripts/musicvideos.js @@ -185,7 +185,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#musicVideosPage", function () { + }).on('pagebeforeshow', "#musicVideosPage", function () { var page = this; diff --git a/dashboard-ui/scripts/nowplayingpage.js b/dashboard-ui/scripts/nowplayingpage.js index cb9d618645..d569e75526 100644 --- a/dashboard-ui/scripts/nowplayingpage.js +++ b/dashboard-ui/scripts/nowplayingpage.js @@ -770,7 +770,7 @@ updateCastIcon(page); }); - }).on('pagebeforeshowready', "#nowPlayingPage", function () { + }).on('pagebeforeshow', "#nowPlayingPage", function () { $(document.body).addClass('hiddenViewMenuBar').addClass('hiddenNowPlayingBar'); var page = this; diff --git a/dashboard-ui/scripts/playlists.js b/dashboard-ui/scripts/playlists.js index c4a863e1ef..979a6f390a 100644 --- a/dashboard-ui/scripts/playlists.js +++ b/dashboard-ui/scripts/playlists.js @@ -169,7 +169,7 @@ }); } - $(document).on('pagebeforeshowready', "#playlistsPage", function () { + $(document).on('pagebeforeshow', "#playlistsPage", function () { var page = this; reloadItems(page); diff --git a/dashboard-ui/scripts/secondaryitems.js b/dashboard-ui/scripts/secondaryitems.js index 73c7253252..58a7e9d463 100644 --- a/dashboard-ui/scripts/secondaryitems.js +++ b/dashboard-ui/scripts/secondaryitems.js @@ -173,7 +173,7 @@ $(page).on('click', '.mediaItem', onListItemClick); - }).on('pagebeforeshowready', "#secondaryItemsPage", function () { + }).on('pagebeforeshow', "#secondaryItemsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/selectserver.js b/dashboard-ui/scripts/selectserver.js index 69732078a0..a18d952dcc 100644 --- a/dashboard-ui/scripts/selectserver.js +++ b/dashboard-ui/scripts/selectserver.js @@ -341,7 +341,7 @@ } } - $(document).on('pageinitdepends pagebeforeshowready', "#selectServerPage", function () { + $(document).on('pageinitdepends pagebeforeshow', "#selectServerPage", function () { var page = this; updatePageStyle(page); diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index a26867c6bf..ee6c3a86ee 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -2277,12 +2277,6 @@ $(document).on('pagecreate', ".page", function () { var page = this; Events.trigger(page, 'pageinitdepends'); -}).on('pagebeforeshow', ".page", function () { - - var page = this; - Dashboard.ensurePageTitle(page); - Events.trigger(page, 'pagebeforeshowready'); - }).on('pageshow', ".page", function () { var page = this; diff --git a/dashboard-ui/scripts/songs.js b/dashboard-ui/scripts/songs.js index dfac31ea9b..ceea2fd0b2 100644 --- a/dashboard-ui/scripts/songs.js +++ b/dashboard-ui/scripts/songs.js @@ -176,7 +176,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#songsPage", function () { + }).on('pagebeforeshow', "#songsPage", function () { var page = this; diff --git a/dashboard-ui/scripts/tvgenres.js b/dashboard-ui/scripts/tvgenres.js index 03d029f100..fdfd373c5e 100644 --- a/dashboard-ui/scripts/tvgenres.js +++ b/dashboard-ui/scripts/tvgenres.js @@ -132,7 +132,7 @@ }); } - $(document).on('pagebeforeshowready', "#tvGenresPage", function () { + $(document).on('pagebeforeshow', "#tvGenresPage", function () { var page = this; reloadItems(page); diff --git a/dashboard-ui/scripts/tvlatest.js b/dashboard-ui/scripts/tvlatest.js index d5a7405cbd..cdc5a20835 100644 --- a/dashboard-ui/scripts/tvlatest.js +++ b/dashboard-ui/scripts/tvlatest.js @@ -77,7 +77,7 @@ }); } - $(document).on('pagebeforeshowready', "#tvNextUpPage", function () { + $(document).on('pagebeforeshow', "#tvNextUpPage", function () { var page = this; if (LibraryBrowser.needsRefresh(page)) { diff --git a/dashboard-ui/scripts/tvpeople.js b/dashboard-ui/scripts/tvpeople.js index a79e6bf84b..861c754c11 100644 --- a/dashboard-ui/scripts/tvpeople.js +++ b/dashboard-ui/scripts/tvpeople.js @@ -148,7 +148,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#tvPeoplePage", function () { + }).on('pagebeforeshow', "#tvPeoplePage", function () { query.ParentId = LibraryMenu.getTopParentId(); diff --git a/dashboard-ui/scripts/tvrecommended.js b/dashboard-ui/scripts/tvrecommended.js index cc593464b7..8cb18ee041 100644 --- a/dashboard-ui/scripts/tvrecommended.js +++ b/dashboard-ui/scripts/tvrecommended.js @@ -170,7 +170,7 @@ }); } - $(document).on('pagebeforeshowready', "#tvRecommendedPage", function () { + $(document).on('pagebeforeshow', "#tvRecommendedPage", function () { var page = this; diff --git a/dashboard-ui/scripts/tvshows.js b/dashboard-ui/scripts/tvshows.js index 084479f308..486e91ef15 100644 --- a/dashboard-ui/scripts/tvshows.js +++ b/dashboard-ui/scripts/tvshows.js @@ -393,7 +393,7 @@ reloadItems(page); }); - }).on('pagebeforeshowready', "#tvShowsPage", function () { + }).on('pagebeforeshow', "#tvShowsPage", function () { var query = getQuery(); diff --git a/dashboard-ui/scripts/tvstudios.js b/dashboard-ui/scripts/tvstudios.js index fe62bb7e6f..2af87eb177 100644 --- a/dashboard-ui/scripts/tvstudios.js +++ b/dashboard-ui/scripts/tvstudios.js @@ -85,7 +85,7 @@ }); } - $(document).on('pagebeforeshowready', "#tvStudiosPage", function () { + $(document).on('pagebeforeshow', "#tvStudiosPage", function () { var page = this; diff --git a/dashboard-ui/scripts/tvupcoming.js b/dashboard-ui/scripts/tvupcoming.js index c6888eea4b..6b8e457121 100644 --- a/dashboard-ui/scripts/tvupcoming.js +++ b/dashboard-ui/scripts/tvupcoming.js @@ -123,7 +123,7 @@ ImageLoader.lazyChildren(elem); } - $(document).on('pagebeforeshowready', "#tvUpcomingPage", function () { + $(document).on('pagebeforeshow', "#tvUpcomingPage", function () { var page = this; diff --git a/dashboard-ui/scripts/useredit.js b/dashboard-ui/scripts/useredit.js index 14dd1aec8c..e972e08fa7 100644 --- a/dashboard-ui/scripts/useredit.js +++ b/dashboard-ui/scripts/useredit.js @@ -197,7 +197,7 @@ $('.editUserProfileForm').off('submit', onSubmit).on('submit', onSubmit); - }).on('pagebeforeshowready', "#editUserPage", function () { + }).on('pagebeforeshow', "#editUserPage", function () { var page = this; diff --git a/dashboard-ui/scripts/userpassword.js b/dashboard-ui/scripts/userpassword.js index 5a83b6a531..c2cda1cfab 100644 --- a/dashboard-ui/scripts/userpassword.js +++ b/dashboard-ui/scripts/userpassword.js @@ -33,7 +33,7 @@ $('.adminUpdatePasswordForm').off('submit', UpdatePasswordPage.onSubmit).on('submit', UpdatePasswordPage.onSubmit); $('.adminLocalAccessForm').off('submit', UpdatePasswordPage.onLocalAccessSubmit).on('submit', UpdatePasswordPage.onLocalAccessSubmit); - }).on('pagebeforeshowready', "#userPasswordPage", function () { + }).on('pagebeforeshow', "#userPasswordPage", function () { var page = this; diff --git a/dashboard-ui/scripts/userprofilespage.js b/dashboard-ui/scripts/userprofilespage.js index f5d628bc6d..7905c2beb4 100644 --- a/dashboard-ui/scripts/userprofilespage.js +++ b/dashboard-ui/scripts/userprofilespage.js @@ -472,7 +472,7 @@ $('.addUserForm').off('submit', onSubmit).on('submit', onSubmit); - }).on('pagebeforeshowready', "#userProfilesPage", function () { + }).on('pagebeforeshow', "#userProfilesPage", function () { var page = this;