hide people tab for ibn items

This commit is contained in:
Luke Pulverenti 2013-06-27 14:40:50 -04:00
parent 9a6be151e3
commit 33b8c86948
4 changed files with 23 additions and 12 deletions

View File

@ -14,7 +14,7 @@
<br />
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="#" data-role="button" onclick="Dashboard.navigate('edititemmetadata.html', true);">Metadata</a>
<a href="#" data-role="button" onclick="Dashboard.navigate('edititempeople.html', true);">People</a>
<a id="peopleTab" style="display: none;" href="#" data-role="button" onclick="Dashboard.navigate('edititempeople.html', true);">People</a>
<a href="#" data-role="button" class="ui-btn-active">Images</a>
</div>

View File

@ -13,7 +13,7 @@
<br />
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="#" data-role="button" class="ui-btn-active">Metadata</a>
<a href="#" data-role="button" onclick="Dashboard.navigate('edititempeople.html', true);">People</a>
<a id="peopleTab" style="display: none;" href="#" data-role="button" onclick="Dashboard.navigate('edititempeople.html', true);">People</a>
<a href="#" data-role="button" onclick="Dashboard.navigate('edititemimages.html', true);">Images</a>
</div>
@ -95,7 +95,7 @@
<label for="selectAirDays">Air Days:</label>
<div data-role="editableListviewContainer" style="width: 78%; display: inline-block;">
<div>
<select name="selectAirDays" Id="selectAirDays" data-mini="true">
<select name="selectAirDays" id="selectAirDays" data-mini="true">
<option value=''></option>
<option value='Monday'>Monday</option>
<option value='Tuesday'>Tuesday</option>
@ -104,12 +104,12 @@
<option value='Friday'>Friday</option>
<option value='Saturday'>Saturday</option>
<option value='Sunday'>Sunday</option>
</select>
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="EditItemMetadataPage.addElementToEditableListview(this,EditItemMetadataPage.sortDaysOfTheWeek)">Add</a>
</select>
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="EditItemMetadataPage.addElementToEditableListview(this,EditItemMetadataPage.sortDaysOfTheWeek)">Add</a>
</div>
<ul data-role="listview" data-inset="true" data-split-icon="delete" id="listAirDays"></ul>
</div>
</div>
<div data-role="fieldcontain" id="fldAirTime" style="display: none;">
<label for="txtAirTime">Air Time:</label>
@ -149,8 +149,8 @@
<h3>Genres</h3>
<div data-role="editableListviewContainer">
<div data-role="fieldcontain">
<input type="text" data-mini="true" />
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="editItemMetadataPage.addElementToEditableListview(this)">Add</a>
<input type="text" data-mini="true" />
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="editItemMetadataPage.addElementToEditableListview(this)">Add</a>
</div>
<ul data-role="listview" data-inset="true" data-split-icon="delete" id="listGenres"></ul>
</div>
@ -159,7 +159,7 @@
<h3>Studios</h3>
<div data-role="editableListviewContainer">
<div data-role="fieldcontain">
<input type="text" data-mini="true" />
<input type="text" data-mini="true" />
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="EditItemMetadataPage.addElementToEditableListview(this)">Add</a>
</div>
<ul data-role="listview" data-inset="true" data-split-icon="delete" id="listStudios"></ul>
@ -169,7 +169,7 @@
<h3>Tags</h3>
<div data-role="editableListviewContainer">
<div data-role="fieldcontain">
<input type="text" data-mini="true" />
<input type="text" data-mini="true" />
<a data-role="button" data-theme="b" data-inline="true" data-mini="true" data-icon="plus" onclick="EditItemMetadataPage.addElementToEditableListview(this)">Add</a>
</div>
<ul data-role="listview" data-inset="true" data-split-icon="delete" id="listTags"></ul>
@ -216,11 +216,10 @@
<h3>Internet Provider Settings</h3>
<div>
<div data-role="fieldcontain">
<input type="checkbox" name="enableInternetProviders" id="enableInternetProviders" onchange="EditItemMetadataPage.setProviderSettingsContainerVisibility(this)"/>
<input type="checkbox" name="enableInternetProviders" id="enableInternetProviders" onchange="EditItemMetadataPage.setProviderSettingsContainerVisibility(this)" />
<label for="enableInternetProviders">Enable internet metadata providers for this item.</label>
</div>
<div id="providerSettingsContainer" style="display: none">
</div>
</div>
</div>

View File

@ -52,6 +52,12 @@
LibraryBrowser.renderName(item, $('.itemName', page), true);
LibraryBrowser.renderParentName(item, $('.parentName', page));
if (item.Type == "Person" || item.Type == "Studio" || item.Type == "MusicGenre" || item.Type == "Genre" || item.Type == "Artist") {
$('#peopleTab', page).hide();
} else {
$('#peopleTab', page).show();
}
ApiClient.getItemImageInfos(currentItem.Id).done(function (imageInfos) {
renderStandardImages(page, item, imageInfos);
renderBackdrops(page, item, imageInfos);

View File

@ -63,6 +63,12 @@
setFieldVisibilities(page, item);
fillItemInfo(page, item);
if (item.Type == "Person" || item.Type == "Studio" || item.Type == "MusicGenre" || item.Type == "Genre" || item.Type == "Artist") {
$('#peopleTab', page).hide();
} else {
$('#peopleTab', page).show();
}
Dashboard.hideLoadingMsg();
});