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

update components

This commit is contained in:
Luke Pulverenti 2016-01-28 15:45:52 -05:00
parent 9f72147880
commit 576b872bde
9 changed files with 38 additions and 36 deletions

View file

@ -38,13 +38,15 @@
return Math.floor(Math.random() * (max - min) + min);
}
var cache = {};
function getBackdropItemIds(apiClient, userId, types, parentId) {
var key = 'backdrops2_' + userId + (types || '') + (parentId || '');
var deferred = $.Deferred();
var data = sessionStore.getItem(key);
var data = cache[key];
if (data) {
@ -73,7 +75,7 @@
};
});
sessionStore.setItem(key, JSON.stringify(images));
cache[key] = JSON.stringify(images);
deferred.resolveWith(null, [images]);
});
}