mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
isolate .net specific methods in model project
This commit is contained in:
parent
2ba4a04377
commit
8cf9cab99e
7 changed files with 28 additions and 5 deletions
|
@ -3,13 +3,27 @@
|
|||
function loadUser(page, user, loggedInUser) {
|
||||
|
||||
if (!loggedInUser.Configuration.IsAdministrator) {
|
||||
|
||||
$('#fldIsAdmin', page).hide();
|
||||
$('#featureAccessFields', page).hide();
|
||||
$('#accessControlDiv', page).hide();
|
||||
|
||||
} else {
|
||||
|
||||
$('#accessControlDiv', page).show();
|
||||
$('#fldIsAdmin', page).show();
|
||||
$('#featureAccessFields', page).show();
|
||||
$('.lnkEditUserPreferencesContainer', page).show();
|
||||
}
|
||||
|
||||
if (!loggedInUser.Configuration.IsAdministrator || !user.Id || user.Id == loggedInUser.Id) {
|
||||
|
||||
$('.lnkEditUserPreferencesContainer', page).hide();
|
||||
|
||||
} else {
|
||||
|
||||
$('.lnkEditUserPreferencesContainer', page).show();
|
||||
$('.lnkEditUserPreferences', page).attr('href', 'mypreferencesdisplay.html?userId=' + user.Id);
|
||||
}
|
||||
|
||||
Dashboard.setPageTitle(user.Name || Globalize.translate('AddUser'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue