mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rename channel category to channel folder
This commit is contained in:
parent
624687e363
commit
8cadabcbe5
8 changed files with 24 additions and 15 deletions
|
@ -9,7 +9,7 @@
|
|||
};
|
||||
|
||||
function getSavedQueryId() {
|
||||
return 'channels-' + getParameterByName('id') + (getParameterByName('categoryId') || '');
|
||||
return 'channels-' + getParameterByName('id') + (getParameterByName('folderId') || '');
|
||||
}
|
||||
|
||||
function showLoadingMessage(page) {
|
||||
|
@ -26,14 +26,14 @@
|
|||
showLoadingMessage(page);
|
||||
|
||||
var channelId = getParameterByName('id');
|
||||
var categoryId = getParameterByName('categoryId');
|
||||
var folderId = getParameterByName('folderId');
|
||||
|
||||
query.UserId = Dashboard.getCurrentUserId();
|
||||
|
||||
|
||||
if (categoryId) {
|
||||
if (folderId) {
|
||||
|
||||
ApiClient.getItem(query.UserId, categoryId).done(function (item) {
|
||||
ApiClient.getItem(query.UserId, folderId).done(function (item) {
|
||||
|
||||
$('.categoryTitle', page).show().html(item.Name);
|
||||
$('.channelHeader', page).show().html('<a href="channelitems.html?id=' + item.ChannelId + '">' + item.ChannelName + '</a>').trigger('create');
|
||||
|
@ -48,7 +48,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
query.categoryId = categoryId;
|
||||
query.folderId = folderId;
|
||||
query.Limit = 50;
|
||||
$.getJSON(ApiClient.getUrl("Channels/" + channelId + "/Items", query)).done(function (result) {
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@
|
|||
$('#movieTabs', page).show();
|
||||
}
|
||||
|
||||
if (item.Type == "ChannelVideoItem" || item.Type == "ChannelAudioItem" || item.Type == "ChannelCategoryItem") {
|
||||
if (item.Type == "video.channelItem" || item.Type == "audio.channelItem" || item.Type == "folder.ChannelItem") {
|
||||
$('#channelTabs', page).show();
|
||||
$('.channelHeader', page).show().html('<a href="channelitems.html?id=' + item.ChannelId + '">' + item.ChannelName + '</a>').trigger('create');
|
||||
} else {
|
||||
|
|
|
@ -389,8 +389,8 @@
|
|||
if (item.Type == "Channel") {
|
||||
return "channelitems.html?id=" + id;
|
||||
}
|
||||
if (item.Type == "ChannelCategoryItem") {
|
||||
return "channelitems.html?id=" + item.ChannelId + '&categoryId=' + item.Id;
|
||||
if (item.Type == "ChannelFolderItem") {
|
||||
return "channelitems.html?id=" + item.ChannelId + '&folderId=' + item.Id;
|
||||
}
|
||||
if (item.Type == "Program") {
|
||||
return "livetvprogram.html?id=" + id;
|
||||
|
|
|
@ -301,6 +301,16 @@
|
|||
updateLibraryNavLinks(page);
|
||||
}
|
||||
|
||||
}).on('pagebeforeshow', ".page", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
if ($(page).hasClass('libraryPage')) {
|
||||
$('.viewMenuBar').show();
|
||||
} else {
|
||||
$('.viewMenuBar').hide();
|
||||
}
|
||||
|
||||
}).on('pageshow', ".libraryPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
|
|
@ -804,7 +804,7 @@
|
|||
// Can't autoplay in these browsers so we need to use the full controls
|
||||
if (requiresControls) {
|
||||
if ($.browser.msie) {
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay="autoplay">';
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay="autoplay" controls="controls">';
|
||||
} else {
|
||||
html += '<video class="itemVideo" id="itemVideo" preload="none" autoplay controls>';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue