fix a missing variable from previous changes

This commit is contained in:
dkanada 2019-01-16 18:31:34 +09:00
parent 1445524edf
commit 4e8fbe9627

View file

@ -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);
}