mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #583 - Add vote count to edit page
This commit is contained in:
parent
4c3748af0c
commit
504db16994
4 changed files with 7 additions and 6 deletions
|
@ -478,12 +478,14 @@
|
|||
|
||||
if (item.Type == "Person" || item.Type == "Genre" || item.Type == "Studio" || item.Type == "GameGenre" || item.Type == "MusicGenre") {
|
||||
$('#fldCommunityRating', page).hide();
|
||||
$('#fldCommunityVoteCount', page).hide();
|
||||
$('#fldOfficialRating', page).hide();
|
||||
$('#fldCustomRating', page).hide();
|
||||
$('#genresCollapsible', page).hide();
|
||||
$('#studiosCollapsible', page).hide();
|
||||
} else {
|
||||
$('#fldCommunityRating', page).show();
|
||||
$('#fldCommunityVoteCount', page).show();
|
||||
$('#fldOfficialRating', page).show();
|
||||
$('#fldCustomRating', page).show();
|
||||
$('#genresCollapsible', page).show();
|
||||
|
@ -594,6 +596,7 @@
|
|||
$('#txtSortName', page).val(item.SortName || "");
|
||||
$('#txtDisplayMediaType', page).val(item.DisplayMediaType || "");
|
||||
$('#txtCommunityRating', page).val(item.CommunityRating || "");
|
||||
$('#txtCommunityVoteCount', page).val(item.VoteCount || "");
|
||||
$('#txtHomePageUrl', page).val(item.HomePageUrl || "");
|
||||
|
||||
$('#txtBudget', page).val(item.Budget || "");
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
|
||||
load: function (page, config) {
|
||||
|
||||
$('#chkRefreshItemImages', page).checked(!config.RefreshItemImages).checkboxradio("refresh");
|
||||
$('#txtNumbackdrops', page).val(config.MaxBackdrops);
|
||||
|
||||
$('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh");
|
||||
|
@ -54,7 +53,6 @@
|
|||
|
||||
ApiClient.getServerConfiguration().done(function (config) {
|
||||
|
||||
config.RefreshItemImages = !$('#chkRefreshItemImages', form).checked();
|
||||
config.MaxBackdrops = $('#txtNumbackdrops', form).val();
|
||||
|
||||
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue