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

fixed image uploading for virtual items

This commit is contained in:
Luke Pulverenti 2013-05-18 13:07:20 -04:00
parent fad47c6a3b
commit c73b7385b4
13 changed files with 52 additions and 2 deletions

View file

@ -294,8 +294,8 @@
var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
if (item.AirDays.length) {
html += ' ' + item.AirDays.map(function (a) {
if (item.AirDays && item.AirDays.length) {
html += item.AirDays.length == 7 ? 'daily' : ' ' + item.AirDays.map(function (a) {
return a + "s";
}).join(',');
@ -760,6 +760,10 @@
var role = cast.Role ? "as " + cast.Role : cast.Type;
if (role == "GuestStar") {
role = "Guest star";
}
html += '<p>' + (role || "") + '</p>';
html += '</div>';

View file

@ -17,6 +17,9 @@
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -17,6 +17,9 @@
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -386,6 +386,7 @@
addCurrentItemToQuery(query);
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
var html = '';
if (result.TotalRecordCount > query.Limit) {

View file

@ -17,6 +17,9 @@
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -18,6 +18,9 @@
ApiClient.getPeople(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -17,6 +17,9 @@
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -16,6 +16,9 @@
ApiClient.getArtists(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -17,6 +17,9 @@
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -155,6 +155,21 @@
html += '<div class="searchHintSecondaryText">' + hint.AlbumArtist + '</div>';
}
else if (hint.Type == "Movie") {
html += '<div class="searchHintSecondaryText">Movie</div>';
}
else if (hint.Type == "Episode") {
html += '<div class="searchHintSecondaryText">Episode</div>';
}
else if (hint.Type == "Series") {
html += '<div class="searchHintSecondaryText">Series</div>';
}
else {
html += '<div class="searchHintSecondaryText">' + (hint.DisplayMediaType || hint.Type) + '</div>';

View file

@ -17,6 +17,9 @@
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -18,6 +18,9 @@
ApiClient.getPeople(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');

View file

@ -17,6 +17,9 @@
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
// Scroll back up so they can see the results from the beginning
$(document).scrollTop(0);
var html = '';
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');