From 4e8fbe9627610342ebb28285b5ae33b6931b0bdd Mon Sep 17 00:00:00 2001 From: dkanada Date: Wed, 16 Jan 2019 18:31:34 +0900 Subject: [PATCH] fix a missing variable from previous changes --- .../homesections/homesections.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/bower_components/emby-webcomponents/homesections/homesections.js b/src/bower_components/emby-webcomponents/homesections/homesections.js index 9f47607e1..5260d31a9 100644 --- a/src/bower_components/emby-webcomponents/homesections/homesections.js +++ b/src/bower_components/emby-webcomponents/homesections/homesections.js @@ -275,24 +275,12 @@ function loadlibraryButtons(elem, apiClient, user, userSettings, userViews) { elem.classList.remove('verticalSection'); var html = getLibraryButtonsHtml(userViews); + elem.innerHTML = html; - bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings); - - if (infoHtml) { - bindAppInfoEvents(elem); - } imageLoader.lazyChildren(elem); } - function bindAppInfoEvents(elem) { - elem.querySelector('.appInfoSection').addEventListener('click', function (e) { - if (dom.parentWithClass(e.target, 'card')) { - registrationServices.showPremiereInfo(); - } - }); - } - /** * Returns a random integer between min (inclusive) and max (inclusive) * Using Math.round() will give you a non-uniform distribution! @@ -524,11 +512,6 @@ elem.innerHTML = html; bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings); - - if (infoHtml) { - bindAppInfoEvents(elem); - } - imageLoader.lazyChildren(elem); }