diff options
author | Christopher Burger <burgerc@freeside.biz> | 2017-06-29 12:51:25 -0400 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2017-06-29 12:51:25 -0400 |
commit | e773f2d834f6757e7a0430184d9db6939e0b632d (patch) | |
tree | 4d7fbe001ed6dc0197e532db6e238a5522380c65 /httemplate/elements/change_password.html | |
parent | a616d0c27799413dfbe07ee86e75df3e0d5a740f (diff) |
RT# 75817 - updated set contact password to use popup window. fixes break in first contact.
Diffstat (limited to 'httemplate/elements/change_password.html')
-rw-r--r-- | httemplate/elements/change_password.html | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index b3a432f95..a8cc883b9 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -15,7 +15,12 @@ <INPUT TYPE="text" ID="<%$pre%>password" NAME="password" VALUE="<% $curr_value |h%>"> <& /elements/random_pass.html, $pre.'password', 'randomize' &> <INPUT TYPE="submit" VALUE="change"> - <INPUT TYPE="button" VALUE="cancel" onclick="<%$pre%>toggle(false)"> +% if ($opt{'popup'}) { + <INPUT TYPE="button" VALUE="cancel" onclick="parent.cClick();"> +% } +% else { + <INPUT TYPE="button" VALUE="cancel" onclick="<%$pre%>toggle(false)"> +%} <DIV ID="<%$pre%>password_result" STYLE="font-size: smaller"></DIV> <& '/elements/validate_password.html', 'fieldid' => $pre.'password', @@ -34,7 +39,7 @@ function <%$pre%>toggle(val) { document.getElementById('<%$pre%>link').style.display = val ? 'none' : 'inline'; } -% if ( $error ) { +% if ( $error || $opt{'popup'} ) { <%$pre%>toggle(true); % } </SCRIPT> @@ -63,5 +68,9 @@ elsif ($opt{'contact_num'}) { $pre .= $opt{'contact_num'} . '_'; } +if ($opt{'popup'}) { + $change_id_input .= '<INPUT TYPE="hidden" NAME="popup" VALUE="' . $opt{'popup'} . '">'; +} + my $error = $cgi->param($pre.'error'); </%init> |