From 8750f20a42829836f82846adf86a5c4047b2e022 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 3 Jan 2017 00:14:44 -0500 Subject: [PATCH] fix user password page --- dashboard-ui/scripts/userpasswordpage.js | 6 +++--- dashboard-ui/scripts/userprofilespage.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dashboard-ui/scripts/userpasswordpage.js b/dashboard-ui/scripts/userpasswordpage.js index b0bb729778..0087cf0a32 100644 --- a/dashboard-ui/scripts/userpasswordpage.js +++ b/dashboard-ui/scripts/userpasswordpage.js @@ -100,7 +100,7 @@ function savePassword() { - var userId = getParameterByName("userId"); + var userId = params.userId; var currentPassword = view.querySelector('#txtCurrentPassword').value; var newPassword = view.querySelector('#txtNewPassword').value; @@ -166,7 +166,7 @@ confirm(msg, Globalize.translate('PasswordResetHeader')).then(function () { - var userId = getParameterByName("userId"); + var userId = params.userId; Dashboard.showLoadingMsg(); @@ -194,7 +194,7 @@ confirm(msg, Globalize.translate('HeaderPinCodeReset')).then(function () { - var userId = getParameterByName("userId"); + var userId = params.userId; Dashboard.showLoadingMsg(); diff --git a/dashboard-ui/scripts/userprofilespage.js b/dashboard-ui/scripts/userprofilespage.js index c3b22a28bc..83e1aa1111 100644 --- a/dashboard-ui/scripts/userprofilespage.js +++ b/dashboard-ui/scripts/userprofilespage.js @@ -69,13 +69,13 @@ switch (id) { case 'open': - Dashboard.navigate('useredit.html?userid=' + userId); + Dashboard.navigate('useredit.html?userId=' + userId); break; case 'access': - Dashboard.navigate('userlibraryaccess.html?userid=' + userId); + Dashboard.navigate('userlibraryaccess.html?userId=' + userId); break; case 'parentalcontrol': - Dashboard.navigate('userparentalcontrol.html?userid=' + userId); + Dashboard.navigate('userparentalcontrol.html?userId=' + userId); break; case 'delete': deleteUser(page, userId);