mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
duplicate password fields on admin side
This commit is contained in:
parent
fd496448ac
commit
0a89e195a5
5 changed files with 87 additions and 36 deletions
|
@ -181,20 +181,7 @@
|
|||
|
||||
window.MyProfilePage = new myProfilePage();
|
||||
|
||||
$(document).on('pagebeforeshow', "#userImagePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
Dashboard.getCurrentUser().done(function (loggedInUser) {
|
||||
|
||||
if (loggedInUser.Policy.IsAdministrator) {
|
||||
$('#lnkParentalControl', page).show();
|
||||
} else {
|
||||
$('#lnkParentalControl', page).hide();
|
||||
}
|
||||
});
|
||||
|
||||
}).on('pageinit', "#userImagePage", function () {
|
||||
$(document).on('pageinit', "#userImagePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
@ -416,20 +403,7 @@
|
|||
|
||||
window.UpdatePasswordPage = new updatePasswordPage();
|
||||
|
||||
$(document).on('pagebeforeshow', "#userImagePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
Dashboard.getCurrentUser().done(function (loggedInUser) {
|
||||
|
||||
if (loggedInUser.Policy.IsAdministrator) {
|
||||
$('#lnkParentalControl', page).show();
|
||||
} else {
|
||||
$('#lnkParentalControl', page).hide();
|
||||
}
|
||||
});
|
||||
|
||||
}).on('pageshow', "#userImagePage", function () {
|
||||
$(document).on('pageshow', ".userPasswordPage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue