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

centralize page size value

This commit is contained in:
Luke Pulverenti 2013-04-09 12:42:55 -04:00
parent 282f3a31c9
commit 328cfd9f2d
3 changed files with 70 additions and 48 deletions

View file

@ -1,5 +1,13 @@
var LibraryBrowser = {
getDetaultPageSize: function() {
if (window.location.toString().toLowerCase().indexOf('localhost') != -1) {
return 100;
}
return 25;
},
getPosterViewHtml: function (options) {
var items = options.items;
@ -27,6 +35,7 @@
height: 198,
width: 352,
tag: item.BackdropImageTags[0]
}) + "' />";
} else if (hasPrimaryImage) {
@ -38,6 +47,7 @@
height: height,
width: width,
tag: item.ImageTags.Primary
}) + "' />";
} else if (item.BackdropImageTags && item.BackdropImageTags.length) {
@ -46,6 +56,7 @@
height: 198,
width: 352,
tag: item.BackdropImageTags[0]
}) + "' />";
}
else if (item.MediaType == "Audio" || item.Type == "MusicAlbum" || item.Type == "MusicArtist") {