mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
hide people tab for ibn items
This commit is contained in:
parent
9a6be151e3
commit
33b8c86948
@ -14,7 +14,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<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('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>
|
<a href="#" data-role="button" class="ui-btn-active">Images</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
|
<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" 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>
|
<a href="#" data-role="button" onclick="Dashboard.navigate('edititemimages.html', true);">Images</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -95,7 +95,7 @@
|
|||||||
<label for="selectAirDays">Air Days:</label>
|
<label for="selectAirDays">Air Days:</label>
|
||||||
<div data-role="editableListviewContainer" style="width: 78%; display: inline-block;">
|
<div data-role="editableListviewContainer" style="width: 78%; display: inline-block;">
|
||||||
<div>
|
<div>
|
||||||
<select name="selectAirDays" Id="selectAirDays" data-mini="true">
|
<select name="selectAirDays" id="selectAirDays" data-mini="true">
|
||||||
<option value=''></option>
|
<option value=''></option>
|
||||||
<option value='Monday'>Monday</option>
|
<option value='Monday'>Monday</option>
|
||||||
<option value='Tuesday'>Tuesday</option>
|
<option value='Tuesday'>Tuesday</option>
|
||||||
@ -216,11 +216,10 @@
|
|||||||
<h3>Internet Provider Settings</h3>
|
<h3>Internet Provider Settings</h3>
|
||||||
<div>
|
<div>
|
||||||
<div data-role="fieldcontain">
|
<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>
|
<label for="enableInternetProviders">Enable internet metadata providers for this item.</label>
|
||||||
</div>
|
</div>
|
||||||
<div id="providerSettingsContainer" style="display: none">
|
<div id="providerSettingsContainer" style="display: none">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,6 +52,12 @@
|
|||||||
LibraryBrowser.renderName(item, $('.itemName', page), true);
|
LibraryBrowser.renderName(item, $('.itemName', page), true);
|
||||||
LibraryBrowser.renderParentName(item, $('.parentName', page));
|
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) {
|
ApiClient.getItemImageInfos(currentItem.Id).done(function (imageInfos) {
|
||||||
renderStandardImages(page, item, imageInfos);
|
renderStandardImages(page, item, imageInfos);
|
||||||
renderBackdrops(page, item, imageInfos);
|
renderBackdrops(page, item, imageInfos);
|
||||||
|
@ -64,6 +64,12 @@
|
|||||||
setFieldVisibilities(page, item);
|
setFieldVisibilities(page, item);
|
||||||
fillItemInfo(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();
|
Dashboard.hideLoadingMsg();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user