Skip to content

Commit e3e24fb

Browse files
Silic0nS0ldieralexweissman
authored andcommitted
Fix for error caused by previous fix, that didn't initally manifest.
1 parent 278500c commit e3e24fb

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • app/sprinkles/admin/assets/local/widgets/js

app/sprinkles/admin/assets/local/widgets/js/users.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ function attachUserForm() {
2929
* Enable/disable password fields when switch is toggled
3030
*/
3131
function toggleChangePasswordMode(el, userName, changePasswordMode) {
32+
var form = el.find("form");
3233
if (changePasswordMode == 'link') {
3334
$(".controls-password").find("input[type='password']").prop('disabled', true);
3435
// Form submits password reset request
35-
el.find("form").attr({
36+
form.attr({
3637
method: 'POST',
3738
action: site.uri.public + '/api/users/u/' + userName + '/password-reset'
3839
});
@@ -54,7 +55,7 @@ function toggleChangePasswordMode(el, userName, changePasswordMode) {
5455
} else {
5556
$(".controls-password").find("input[type='password']").prop('disabled', false);
5657
// Form submits direct password update
57-
el.find("form").attr({
58+
form.attr({
5859
method: 'PUT',
5960
action: site.uri.public + '/api/users/u/' + userName + '/password'
6061
});

0 commit comments

Comments
 (0)