jellyfin-web/dashboard-ui/scripts/favorites.js
2016-03-31 02:33:37 -04:00

19 lines
460 B
JavaScript

define(['components/favoriteitems'], function (favoriteItems) {
return function (view, params) {
var self = this;
view.addEventListener('viewshow', function (e) {
var isRestored = e.detail.isRestored;
if (!isRestored) {
var parentId = null;
favoriteItems.render(view, Dashboard.getCurrentUserId(), parentId);
}
});
};
});