fix a missing variable from previous changes
This commit is contained in:
parent
1445524edf
commit
4e8fbe9627
1 changed files with 1 additions and 18 deletions
|
@ -275,24 +275,12 @@
|
||||||
function loadlibraryButtons(elem, apiClient, user, userSettings, userViews) {
|
function loadlibraryButtons(elem, apiClient, user, userSettings, userViews) {
|
||||||
elem.classList.remove('verticalSection');
|
elem.classList.remove('verticalSection');
|
||||||
var html = getLibraryButtonsHtml(userViews);
|
var html = getLibraryButtonsHtml(userViews);
|
||||||
|
|
||||||
elem.innerHTML = html;
|
elem.innerHTML = html;
|
||||||
|
|
||||||
bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings);
|
bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings);
|
||||||
|
|
||||||
if (infoHtml) {
|
|
||||||
bindAppInfoEvents(elem);
|
|
||||||
}
|
|
||||||
imageLoader.lazyChildren(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)
|
* Returns a random integer between min (inclusive) and max (inclusive)
|
||||||
* Using Math.round() will give you a non-uniform distribution!
|
* Using Math.round() will give you a non-uniform distribution!
|
||||||
|
@ -524,11 +512,6 @@
|
||||||
|
|
||||||
elem.innerHTML = html;
|
elem.innerHTML = html;
|
||||||
bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings);
|
bindHomeScreenSettingsIcon(elem, apiClient, user.Id, userSettings);
|
||||||
|
|
||||||
if (infoHtml) {
|
|
||||||
bindAppInfoEvents(elem);
|
|
||||||
}
|
|
||||||
|
|
||||||
imageLoader.lazyChildren(elem);
|
imageLoader.lazyChildren(elem);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue