diff --git a/dashboard-ui/scripts/livetvrecordings.js b/dashboard-ui/scripts/livetvrecordings.js index 9758bf997e..b7407ccb7e 100644 --- a/dashboard-ui/scripts/livetvrecordings.js +++ b/dashboard-ui/scripts/livetvrecordings.js @@ -132,7 +132,7 @@ elem.querySelector('.recordingItems').innerHTML = html; ImageLoader.lazyChildren(elem); - $(elem).createCardMenus(); + LibraryBrowser.createCardMenus(elem); }); } diff --git a/dashboard-ui/scripts/mypreferencescommon.js b/dashboard-ui/scripts/mypreferencescommon.js index 7306cc9961..fd1647cb68 100644 --- a/dashboard-ui/scripts/mypreferencescommon.js +++ b/dashboard-ui/scripts/mypreferencescommon.js @@ -2,7 +2,7 @@ var page = this; - $('.btnLogout', page).on('click', function () { + page.querySelector('.btnLogout').addEventListener('click', function () { Dashboard.logout(); }); @@ -15,11 +15,11 @@ pageIdOn('pageshow', 'myPreferencesMenuPage', function () { var userId = getParameterByName('userId') || Dashboard.getCurrentUserId(); - $('.lnkDisplayPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + userId); - $('.lnkLanguagePreferences', page).attr('href', 'mypreferenceslanguages.html?userId=' + userId); - $('.lnkHomeScreenPreferences', page).attr('href', 'mypreferenceshome.html?userId=' + userId); - $('.lnkMyProfile', page).attr('href', 'myprofile.html?userId=' + userId); - $('.lnkSync', page).attr('href', 'mysyncsettings.html?userId=' + userId); + page.querySelector('.lnkDisplayPreferences').setAttribute('href', 'mypreferencesdisplay.html?userId=' + userId); + page.querySelector('.lnkLanguagePreferences').setAttribute('href', 'mypreferenceslanguages.html?userId=' + userId); + page.querySelector('.lnkHomeScreenPreferences').setAttribute('href', 'mypreferenceshome.html?userId=' + userId); + page.querySelector('.lnkMyProfile').setAttribute('href', 'myprofile.html?userId=' + userId); + page.querySelector('.lnkSync').setAttribute('href', 'mysyncsettings.html?userId=' + userId); if (Dashboard.capabilities().SupportsSync) { page.querySelector('.lnkSync').classList.remove('hide');