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

update channel view

This commit is contained in:
Luke Pulverenti 2016-03-29 23:10:01 -04:00
parent 0b7e7078bd
commit cb3b17ee4a
9 changed files with 52 additions and 85 deletions

View file

@ -446,9 +446,13 @@
title += collapsible.title || '';
title += '<span class="title-separator"></span>';
title += (link.innerText || link.textContent).trim();
Dashboard.setPageTitle(title);
var secondaryTitle = (link.innerText || link.textContent).trim();
title += secondaryTitle;
var documentTitle = collapsible.title || secondaryTitle;
Dashboard.setPageTitle(title, documentTitle);
} else {
link.classList.remove('selectedSidebarLink');

View file

@ -12,8 +12,9 @@
query: {
SortBy: "SortName",
SortOrder: "Ascending",
IncludeItemTypes: "Trailer",
Recursive: true,
Fields: "PrimaryImageAspectRatio,SortName,SyncInfo",
Fields: "PrimaryImageAspectRatio,SortName,MediaSourceCount,SyncInfo",
ImageTypeLimit: 1,
EnableImageTypes: "Primary,Backdrop,Banner,Thumb",
StartIndex: 0,
@ -39,9 +40,9 @@
Dashboard.showLoadingMsg();
var query = getQuery(page);
query.UserId = Dashboard.getCurrentUserId();
var userId = Dashboard.getCurrentUserId();
ApiClient.getJSON(ApiClient.getUrl('Trailers', query)).then(function (result) {
ApiClient.getItems(userId, query).then(function (result) {
// Scroll back up so they can see the results from the beginning
window.scrollTo(0, 0);

View file

@ -129,7 +129,7 @@
page.querySelector('.chkDisplayCollectionView').checked = user.Configuration.DisplayCollectionsView || false;
page.querySelector('.chkHidePlayedFromLatest').checked = user.Configuration.HidePlayedInLatest || false;
page.querySelector('.chkDisplayChannelsInline').checked = user.Configuration.DisplayChannelsInline || false;
page.querySelector('.chkDisplayChannelsInline').checked = !(user.Configuration.EnableChannelView || false);
$('#selectHomeSection1', page).val(displayPreferences.CustomPrefs.home0 || '');
$('#selectHomeSection2', page).val(displayPreferences.CustomPrefs.home1 || '');
@ -166,7 +166,7 @@
user.Configuration.DisplayCollectionsView = page.querySelector('.chkDisplayCollectionView').checked;
user.Configuration.HidePlayedInLatest = page.querySelector('.chkHidePlayedFromLatest').checked;
user.Configuration.DisplayChannelsInline = page.querySelector('.chkDisplayChannelsInline').checked;
user.Configuration.EnableChannelView = !page.querySelector('.chkDisplayChannelsInline').checked;
user.Configuration.LatestItemsExcludes = $(".chkIncludeInLatest", page).get().filter(function (i) {

View file

@ -247,21 +247,9 @@
var page = this;
$('.chkPremiumFilter', page).on('change', function () {
$('#selectSystem', page).on('change', function () {
if (this.checked) {
query.IsPremium = false;
} else {
query.IsPremium = null;
}
reloadList(page);
});
$('.radioPackageTypes', page).on('change', function () {
var val = $('.radioPackageTypes:checked', page).val();
query.TargetSystems = val;
query.TargetSystems = this.value;
reloadList(page);
});
@ -275,21 +263,6 @@
var page = this;
$(".radioPackageTypes", page).each(function () {
this.checked = this.value == query.TargetSystems;
}).checkboxradio('refresh');
// Reset form values using the last used query
$('.chkPremiumFilter', page).each(function () {
var filters = query.IsPremium || false;
this.checked = filters;
}).checkboxradio('refresh');
reloadList(page);
});

View file

@ -130,6 +130,7 @@
if (query.IncludeItemTypes == "MusicAlbum") {
posterOptions.overlayText = false;
posterOptions.showParentTitle = true;
posterOptions.showTitle = true;
posterOptions.overlayPlayButton = true;
}
else if (query.IncludeItemTypes == "MusicArtist") {

View file

@ -1282,12 +1282,13 @@ var Dashboard = {
});
},
setPageTitle: function (title) {
setPageTitle: function (title, documentTitle) {
LibraryMenu.setTitle(title || 'Emby');
if (title) {
document.title = title;
documentTitle = documentTitle || title;
if (documentTitle) {
document.title = documentTitle;
}
},