fixes #381 - Add Video3DFormat to edit page

This commit is contained in:
Luke Pulverenti 2013-07-29 08:34:46 -04:00
parent 20176b922f
commit ddaa17ce64
2 changed files with 19 additions and 0 deletions

View File

@ -143,6 +143,16 @@
<label for="txtPlayers">Players:</label>
<input type="number" id="txtPlayers" name="txtPlayers" data-mini="true" />
</div>
<div data-role="fieldcontain" id="fld3dFormat" style="display: none;">
<label for="select3dFormat">3D Format:</label>
<select name="select3dFormat" id="select3dFormat" data-mini="true">
<option value=""></option>
<option value="HalfSideBySide">HSBS</option>
<option value="HalfTopAndBottom">HTAB</option>
<option value="FullSideBySide">FSBS</option>
<option value="FullTopAndBottom">FTAB</option>
</select>
</div>
</div>
</div>
<div data-role="collapsible" id="genresCollapsible" style="display: none;">

View File

@ -154,6 +154,12 @@
$('#fldAirTime', page).hide();
}
if (item.MediaType == "Video") {
$('#fld3dFormat', page).show();
} else {
$('#fld3dFormat', page).hide();
}
if (item.Type == "Audio") {
$('#fldAlbumArtist', page).show();
} else {
@ -281,6 +287,8 @@
populateStatus(selectStatus);
selectStatus.val(item.Status || "").selectmenu('refresh');
$('#select3dFormat', page).val(item.Video3DFormat || "").selectmenu('refresh');
populateListView($('#listAirDays', page), item.AirDays);
populateListView($('#listGenres', page), item.Genres);
populateListView($('#listStudios', page), item.Studios.map(function (element) { return element.Name || ''; }));
@ -538,6 +546,7 @@
EndDate: $('#txtEndDate', form).val(),
ProductionYear: $('#txtProductionYear', form).val(),
AspectRatio: $('#txtOriginalAspectRatio', form).val(),
Video3DFormat: $('#select3dFormat', form).val(),
Language: $('#selectLanguage', form).val(),
OfficialRating: $('#selectOfficialRating', form).val(),