1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

support channel folders

This commit is contained in:
Luke Pulverenti 2014-05-04 20:46:52 -04:00
parent b88819dd78
commit 636ea91460
4 changed files with 20 additions and 10 deletions

View file

@ -9,7 +9,7 @@
};
function getSavedQueryId() {
return 'channels-' + getParameterByName('id');
return 'channels-' + getParameterByName('id') + (getParameterByName('categoryId') || '');
}
function showLoadingMessage(page) {
@ -26,9 +26,15 @@
showLoadingMessage(page);
var channelId = getParameterByName('id');
var categoryId = getParameterByName('categoryId');
query.UserId = Dashboard.getCurrentUserId();
ApiClient.getItem(query.UserId, categoryId || channelId).done(function (item) {
$('.categoryTitle', page).html(item.Name);
});
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
// Scroll back up so they can see the results from the beginning
@ -42,7 +48,7 @@
html = LibraryBrowser.getPosterViewHtml({
items: result.Items,
shape: "portrait",
shape: "auto",
context: 'channels',
showTitle: true,
centerText: true