1
0
Fork 0
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:
Luke Pulverenti 2013-10-13 10:37:17 -04:00
parent 4c3748af0c
commit 504db16994
4 changed files with 7 additions and 6 deletions

View file

@ -94,6 +94,10 @@
<label for="txtCommunityRating">Community rating:</label> <label for="txtCommunityRating">Community rating:</label>
<input type="number" id="txtCommunityRating" name="txtCommunityRating" step=".1" data-mini="true" /> <input type="number" id="txtCommunityRating" name="txtCommunityRating" step=".1" data-mini="true" />
</div> </div>
<div id="fldCommunityVoteCount" style="display: none;" data-role="fieldcontain">
<label for="txtCommunityVoteCount">Community vote count:</label>
<input type="number" id="txtCommunityVoteCount" name="txtCommunityVoteCount" data-mini="true" />
</div>
<div data-role="fieldcontain" id="fldCriticRating" style="display: none;"> <div data-role="fieldcontain" id="fldCriticRating" style="display: none;">
<label for="txtCriticRating">Critic rating:</label> <label for="txtCriticRating">Critic rating:</label>
<input type="number" id="txtCriticRating" name="txtCriticRating" step=".1" data-mini="true" /> <input type="number" id="txtCriticRating" name="txtCriticRating" step=".1" data-mini="true" />

View file

@ -17,10 +17,6 @@
<form id="metadataImagesConfigurationForm"> <form id="metadataImagesConfigurationForm">
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li>
<input type="checkbox" id="chkRefreshItemImages" name="chkRefreshItemImages" />
<label for="chkRefreshItemImages">Download missing images only</label>
</li>
<li> <li>
<label for="txtNumbackdrops">Max number of backdrops per item: </label> <label for="txtNumbackdrops">Max number of backdrops per item: </label>
<input type="number" id="txtNumbackdrops" name="txtNumbackdrops" pattern="[0-9]*" required="required" min="1" /> <input type="number" id="txtNumbackdrops" name="txtNumbackdrops" pattern="[0-9]*" required="required" min="1" />

View file

@ -478,12 +478,14 @@
if (item.Type == "Person" || item.Type == "Genre" || item.Type == "Studio" || item.Type == "GameGenre" || item.Type == "MusicGenre") { if (item.Type == "Person" || item.Type == "Genre" || item.Type == "Studio" || item.Type == "GameGenre" || item.Type == "MusicGenre") {
$('#fldCommunityRating', page).hide(); $('#fldCommunityRating', page).hide();
$('#fldCommunityVoteCount', page).hide();
$('#fldOfficialRating', page).hide(); $('#fldOfficialRating', page).hide();
$('#fldCustomRating', page).hide(); $('#fldCustomRating', page).hide();
$('#genresCollapsible', page).hide(); $('#genresCollapsible', page).hide();
$('#studiosCollapsible', page).hide(); $('#studiosCollapsible', page).hide();
} else { } else {
$('#fldCommunityRating', page).show(); $('#fldCommunityRating', page).show();
$('#fldCommunityVoteCount', page).show();
$('#fldOfficialRating', page).show(); $('#fldOfficialRating', page).show();
$('#fldCustomRating', page).show(); $('#fldCustomRating', page).show();
$('#genresCollapsible', page).show(); $('#genresCollapsible', page).show();
@ -594,6 +596,7 @@
$('#txtSortName', page).val(item.SortName || ""); $('#txtSortName', page).val(item.SortName || "");
$('#txtDisplayMediaType', page).val(item.DisplayMediaType || ""); $('#txtDisplayMediaType', page).val(item.DisplayMediaType || "");
$('#txtCommunityRating', page).val(item.CommunityRating || ""); $('#txtCommunityRating', page).val(item.CommunityRating || "");
$('#txtCommunityVoteCount', page).val(item.VoteCount || "");
$('#txtHomePageUrl', page).val(item.HomePageUrl || ""); $('#txtHomePageUrl', page).val(item.HomePageUrl || "");
$('#txtBudget', page).val(item.Budget || ""); $('#txtBudget', page).val(item.Budget || "");

View file

@ -13,7 +13,6 @@
load: function (page, config) { load: function (page, config) {
$('#chkRefreshItemImages', page).checked(!config.RefreshItemImages).checkboxradio("refresh");
$('#txtNumbackdrops', page).val(config.MaxBackdrops); $('#txtNumbackdrops', page).val(config.MaxBackdrops);
$('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh"); $('#chkDownloadMovieArt', page).checked(config.DownloadMovieImages.Art).checkboxradio("refresh");
@ -54,7 +53,6 @@
ApiClient.getServerConfiguration().done(function (config) { ApiClient.getServerConfiguration().done(function (config) {
config.RefreshItemImages = !$('#chkRefreshItemImages', form).checked();
config.MaxBackdrops = $('#txtNumbackdrops', form).val(); config.MaxBackdrops = $('#txtNumbackdrops', form).val();
config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked(); config.DownloadMovieImages.Art = $('#chkDownloadMovieArt', form).checked();