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

Reports - icons and people fix

This commit is contained in:
Tavares André 2015-06-30 20:38:09 +02:00
parent 17e2a0c5b0
commit b09097838c
2 changed files with 37 additions and 27 deletions

View file

@ -127,29 +127,29 @@
break;
case "StatusImage":
if (rRow.HasLockData) {
html += '<img src="css/images/editor/lock.png" />';
html += '<img src="css/images/editor/lock.png" style="width:18px"/>';
}
if (rRow.IsUnidentified) {
html += '<div class="libraryReportIndicator"><div class="ui-icon-alert ui-btn-icon-notext"></div></div>';
}
if (!rRow.HasLocalTrailer && rRow.RowType === "Movie") {
html += '<img src="css/images/editor/missingtrailer.png" title="Missing local trailer." />';
html += '<img src="css/images/editor/missingtrailer.png" title="Missing local trailer." style="width:18px"/>';
}
if (!rRow.HasImageTagsPrimary) {
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingprimaryimage.png" title="Missing primary image." /></a>';
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingprimaryimage.png" title="Missing primary image." style="width:18px"/></a>';
}
if (!rRow.HasImageTagsBackdrop) {
if (rRow.RowType !== "Episode" && rRow.RowType !== "Season" && rRow.MediaType !== "Audio" && rRow.RowType !== "TvChannel" && rRow.RowType !== "MusicAlbum") {
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingbackdrop.png" title="Missing backdrop image." /></a>';
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missingbackdrop.png" title="Missing backdrop image." style="width:18px"/></a>';
}
}
if (!rRow.HasImageTagsLogo) {
if (rRow.RowType === "Movie" || rRow.RowType === "Trailer" || rRow.RowType === "Series" || rRow.RowType === "MusicArtist" || rRow.RowType === "BoxSet") {
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missinglogo.png" title="Missing logo image." /></a>';
html += '<a href="edititemimages.html?id=' + rRow.Id + '"><img src="css/images/editor/missinglogo.png" title="Missing logo image." style="width:18px"/></a>';
}
}
break;
@ -265,7 +265,6 @@
if (query.ReportView === "ReportData" || query.ReportView === "ReportStatistics") {
$('#selectIncludeItemTypesBox', page).show();
$('#tabFilterBox', page).show();
$('#tabFilter', page).show();
}
else {
@ -274,18 +273,20 @@
$('#tabFilter', page).hide();
}
var pagingHtml = LibraryBrowser.getQueryPagingHtml({
startIndex: query.StartIndex,
limit: query.Limit,
totalRecordCount: result.TotalRecordCount,
updatePageSizeSetting: false,
viewButton: true,
showLimit: false
});
if (query.ReportView === "ReportData" || query.ReportView === "ReportActivities") {
var pagingHtml = LibraryBrowser.getQueryPagingHtml({
startIndex: query.StartIndex,
limit: query.Limit,
totalRecordCount: result.TotalRecordCount,
updatePageSizeSetting: false,
viewButton: true,
showLimit: false
});
page.querySelector('.listTopPaging').innerHTML = pagingHtml;
$('.listTopPaging', page).html(pagingHtml).trigger('create');
// page.querySelector('.listTopPaging').innerHTML = pagingHtml;
$('.listTopPaging', page).show();
$('.listBottomPaging', page).html(pagingHtml).trigger('create');
@ -341,8 +342,13 @@
});
}
else {
$('.listTopPaging', page).hide();
$('.listTopPaging', page).html(pagingHtml).trigger('create');
// page.querySelector('.listTopPaging').innerHTML = pagingHtml;
$('.listTopPaging', page).show();
$('.listBottomPaging', page).hide();
$('.btnNextPage', page).hide();
$('.btnPreviousPage', page).hide();
@ -370,7 +376,7 @@
$('#GroupEpisodes', page).show();
break;
}
$('.viewPanel', page).refresh;
}
function reloadItems(page) {
@ -405,9 +411,6 @@
}
function updateFilterControls(page) {
$('.chkStandardFilter', page).each(function () {
var filters = "," + (query.Filters || "");
@ -451,6 +454,7 @@
$('#chkSubtitle', page).checked(query.HasSubtitles == true).checkboxradio('refresh');
$('#chkTrailer', page).checked(query.HasTrailer == true).checkboxradio('refresh');
$('#chkMissingTrailer', page).checked(query.HasTrailer == false).checkboxradio('refresh');
$('#chkSpecialFeature', page).checked(query.HasSpecialFeature == true).checkboxradio('refresh');
$('#chkThemeSong', page).checked(query.HasThemeSong == true).checkboxradio('refresh');
$('#chkThemeVideo', page).checked(query.HasThemeVideo == true).checkboxradio('refresh');
@ -490,7 +494,6 @@
reloadItems(page);
});
}
}
$(document).on('pageinitdepends', "#libraryReportManagerPage", function () {
@ -509,8 +512,6 @@
loadGroupByFilters(page);
reloadFiltersIfNeeded(page);
reloadItems(page);
});
$('#selectViewType', page).on('change', function () {
@ -524,8 +525,6 @@
loadGroupByFilters(page);
reloadFiltersIfNeeded(page);
reloadItems(page);
});
$('#selectReportGroup', page).on('change', function () {
@ -639,6 +638,14 @@
reloadItems(page);
});
$('#chkMissingTrailer', this).on('change', function () {
query.StartIndex = 0;
query.HasTrailer = this.checked ? false : null;
reloadItems(page);
});
$('#chkSpecialFeature', this).on('change', function () {
query.StartIndex = 0;