1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

restore grouped card click handler

This commit is contained in:
Luke Pulverenti 2016-07-23 16:00:56 -04:00
parent f52a94d778
commit 2efd8e3c32
4 changed files with 70 additions and 9 deletions

View file

@ -1,4 +1,4 @@
define(['components/categorysyncbuttons'], function (categorysyncbuttons) {
define(['components/categorysyncbuttons', 'components/groupedcards'], function (categorysyncbuttons, groupedcards) {
function getView() {
@ -74,19 +74,21 @@
Dashboard.hideLoadingMsg();
});
}
return function (view, params, tabContent) {
return function (view, params, tabContent) {
var self = this;
categorysyncbuttons.init(tabContent); var latestPromise;
self.preRender = function () {
latestPromise = getLatestPromise(view, params);
self.preRender = function () {
latestPromise = getLatestPromise(view, params);
};
self.renderTab = function() {
self.renderTab = function () {
loadLatest(tabContent, params, latestPromise);
};
};
tabContent.querySelector('#latestEpisodes').addEventListener('click', groupedcards.onItemsContainerClick);
};
});