mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
28 lines
636 B
JavaScript
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); |