update favorites

This commit is contained in:
Luke Pulverenti 2016-06-16 09:18:52 -04:00
parent fe036d467f
commit 460d0cab8b
2 changed files with 4 additions and 3 deletions

View file

@ -40,7 +40,8 @@
Recursive: true,
Fields: "PrimaryImageAspectRatio,SyncInfo",
CollapseBoxSetItems: false,
ExcludeLocationTypes: "Virtual"
ExcludeLocationTypes: "Virtual",
EnableTotalRecordCount: false
};
if (topParentId) {
@ -73,7 +74,7 @@
html += '<div>';
html += '<h1 style="display:inline-block; vertical-align:middle;" class="listHeader">' + Globalize.translate(section.name) + '</h1>';
if (result.TotalRecordCount > result.Items.length) {
if (options.Limit && result.Items.length >= options.Limit) {
var href = "secondaryitems.html?type=" + section.types + "&filters=IsFavorite&titlekey=" + section.name;
html += '<a class="clearLink" href="' + href + '" style="margin-left:2em;"><button is="emby-button" type="button" class="raised more mini">' + Globalize.translate('ButtonMore') + '</button></a>';