diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2017-06-29 12:51:25 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2017-08-18 12:50:13 -0400 |
| commit | ec479b83db152b2658e99901e03d29d2a458acb9 (patch) | |
| tree | f4034d84ca435c1f2e3c9ff71f59a5a144156662 /httemplate/elements/change_password.html | |
| parent | e1c33eb543954d13ca0984c2a768fe3d98bbb75a (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> |
