1
0
Fork 0
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:
Luke Pulverenti 2015-01-31 22:29:26 -05:00
parent fd496448ac
commit 0a89e195a5
5 changed files with 87 additions and 36 deletions

View file

@ -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;