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

channel fixes

This commit is contained in:
Luke Pulverenti 2014-05-18 15:58:42 -04:00
parent 382c0e393c
commit c04ac2c462
7 changed files with 48 additions and 54 deletions

View file

@ -9,7 +9,7 @@
};
function getSavedQueryId() {
return 'channels-' + (getParameterByName('categoryId') || '');
return 'channels-' + getParameterByName('id') + (getParameterByName('categoryId') || '');
}
function showLoadingMessage(page) {
@ -35,9 +35,7 @@
$('.categoryTitle', page).html(item.Name);
});
if (categoryId) {
query.categoryId = categoryId;
}
query.categoryId = categoryId;
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
@ -55,7 +53,8 @@
shape: "auto",
context: 'channels',
showTitle: true,
centerText: true
centerText: true,
coverImage: true
});
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
@ -80,6 +79,9 @@
LibraryBrowser.saveQueryValues(getSavedQueryId(), query);
}).always(function() {
hideLoadingMessage(page);
});
}