jellyfin-web/dashboard-ui/scripts/movies.js
2013-04-01 20:54:06 -04:00

28 lines
636 B
JavaScript

(function ($, document) {
$(document).on('pageshow', "#moviesPage", function () {
var page = this;
var options = {
SortBy: "SortName",
SortOrder: "Ascending",
IncludeItemTypes: "Movie",
Recursive: true,
Fields: "PrimaryImageAspectRatio"
};
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
$('#items', page).html(Dashboard.getPosterViewHtml({
items: result.Items,
useAverageAspectRatio: true
}));
});
});
})(jQuery, document);