mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2025-02-19 22:11:34 +00:00
Fix parental control hiding
This commit is contained in:
parent
e9151293fa
commit
2ceb7e0ff0
@ -25,17 +25,19 @@
|
||||
<label for="chkIsAdmin">Allow this user to manage the server</label>
|
||||
</li>
|
||||
</ul>
|
||||
<h2>Parental Control</h2>
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li id="fldMaxParentalRating" >
|
||||
<label for="selectMaxParentalRating">Max parental rating:</label>
|
||||
<select name="selectMaxParentalRating" id="selectMaxParentalRating"></select>
|
||||
</li>
|
||||
<li id="fldBlockNotRated" >
|
||||
<input type="checkbox" id="chkBlockNotRated" name="chkBlockNotRated" />
|
||||
<label for="chkBlockNotRated">Block items with no rating information</label>
|
||||
</li>
|
||||
</ul>
|
||||
<div id="parentalControlDiv" style="display: none">
|
||||
<h2>Parental Control</h2>
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li id="fldMaxParentalRating" >
|
||||
<label for="selectMaxParentalRating">Max parental rating:</label>
|
||||
<select name="selectMaxParentalRating" id="selectMaxParentalRating"></select>
|
||||
</li>
|
||||
<li id="fldBlockNotRated" >
|
||||
<input type="checkbox" id="chkBlockNotRated" name="chkBlockNotRated" />
|
||||
<label for="chkBlockNotRated">Block items with no rating information</label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<h2>Video Playback Settings</h2>
|
||||
<ul data-role="listview" class="ulForm">
|
||||
<li>
|
||||
|
@ -57,9 +57,10 @@
|
||||
function loadUser(page, user, loggedInUser, parentalRatingsPromise, allCulturesPromise) {
|
||||
|
||||
if (!loggedInUser.Configuration.IsAdministrator) {
|
||||
|
||||
$('#parentalControlDiv', page).hide();
|
||||
$('#fldIsAdmin', page).hide();
|
||||
} else {
|
||||
$('#parentalControlDiv', page).show();
|
||||
$('#fldIsAdmin', page).show();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user