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