mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
split out parental controls into a separate edit page
This commit is contained in:
parent
c8cd49ffe7
commit
c27d378e34
13 changed files with 234 additions and 123 deletions
|
@ -91,20 +91,12 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
var userId = getParameterByName("userId");
|
||||
|
||||
if (userId) {
|
||||
$('#userProfileNavigation', page).show();
|
||||
} else {
|
||||
$('#userProfileNavigation', page).hide();
|
||||
}
|
||||
|
||||
Dashboard.getCurrentUser().done(function (loggedInUser) {
|
||||
|
||||
if (loggedInUser.Configuration.IsAdministrator) {
|
||||
$('.lnkMediaLibrary', page).show().prev().removeClass('ui-last-child');
|
||||
$('#lnkParentalControl', page).show();
|
||||
} else {
|
||||
$('.lnkMediaLibrary', page).hide().prev().addClass('ui-last-child');
|
||||
$('#lnkParentalControl', page).hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue