jellyfin-web/dashboard-ui/scripts/favorites.js
Luke Pulverenti 88d6c63263 use strict
2016-10-23 01:11:46 -04:00

20 lines
479 B
JavaScript

define(['components/favoriteitems'], function (favoriteItems) {
'use strict';
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);
}
});
};
});