mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
30 lines
596 B
JavaScript
30 lines
596 B
JavaScript
(function ($, document) {
|
|
|
|
$(document).on('pageshow', "#indexPage", function () {
|
|
|
|
var page = this;
|
|
|
|
var userId = Dashboard.getCurrentUserId();
|
|
|
|
if (!userId) {
|
|
return;
|
|
}
|
|
|
|
page = $(page);
|
|
|
|
var options = {
|
|
|
|
sortBy: "SortName"
|
|
};
|
|
|
|
ApiClient.getItems(userId, options).done(function (result) {
|
|
|
|
$('#divCollections', page).html(Dashboard.getPosterViewHtml({
|
|
items: result.Items,
|
|
showTitle: true
|
|
}));
|
|
|
|
});
|
|
});
|
|
|
|
})(jQuery, document); |