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:
parent
fad47c6a3b
commit
c73b7385b4
13 changed files with 52 additions and 2 deletions
|
@ -294,8 +294,8 @@
|
||||||
|
|
||||||
var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
|
var html = item.Status == 'Ended' ? 'Aired' : 'Airs';
|
||||||
|
|
||||||
if (item.AirDays.length) {
|
if (item.AirDays && item.AirDays.length) {
|
||||||
html += ' ' + item.AirDays.map(function (a) {
|
html += item.AirDays.length == 7 ? 'daily' : ' ' + item.AirDays.map(function (a) {
|
||||||
return a + "s";
|
return a + "s";
|
||||||
|
|
||||||
}).join(',');
|
}).join(',');
|
||||||
|
@ -760,6 +760,10 @@
|
||||||
|
|
||||||
var role = cast.Role ? "as " + cast.Role : cast.Type;
|
var role = cast.Role ? "as " + cast.Role : cast.Type;
|
||||||
|
|
||||||
|
if (role == "GuestStar") {
|
||||||
|
role = "Guest star";
|
||||||
|
}
|
||||||
|
|
||||||
html += '<p>' + (role || "") + '</p>';
|
html += '<p>' + (role || "") + '</p>';
|
||||||
|
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -386,6 +386,7 @@
|
||||||
addCurrentItemToQuery(query);
|
addCurrentItemToQuery(query);
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), query).done(function (result) {
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
if (result.TotalRecordCount > query.Limit) {
|
if (result.TotalRecordCount > query.Limit) {
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
|
|
||||||
ApiClient.getPeople(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
|
|
||||||
ApiClient.getArtists(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -155,6 +155,21 @@
|
||||||
|
|
||||||
html += '<div class="searchHintSecondaryText">' + hint.AlbumArtist + '</div>';
|
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 {
|
else {
|
||||||
html += '<div class="searchHintSecondaryText">' + (hint.DisplayMediaType || hint.Type) + '</div>';
|
html += '<div class="searchHintSecondaryText">' + (hint.DisplayMediaType || hint.Type) + '</div>';
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getGenres(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
|
|
||||||
ApiClient.getPeople(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
|
@ -17,6 +17,9 @@
|
||||||
|
|
||||||
ApiClient.getStudios(Dashboard.getCurrentUserId(), query).done(function (result) {
|
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 = '';
|
var html = '';
|
||||||
|
|
||||||
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
$('.listTopPaging', page).html(LibraryBrowser.getPagingHtml(query, result.TotalRecordCount, true)).trigger('create');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue