summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-09-25 13:19:46 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-09-25 13:19:46 -0400
commit66b90d3d395a6bace7d3d73743fbd3dc54bda8b6 (patch)
tree777eaa401dffb747cb7736508d74ba6b2273ca14 /httemplate/elements
parent45c72d122fa15a957d3f8ef79ef3bd06f459f563 (diff)
RT# 75817 - fixed selecting random password on custmain page
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/change_password.html3
-rw-r--r--httemplate/elements/random_pass.html1
2 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html
index 65b7d85..068d7d7 100644
--- a/httemplate/elements/change_password.html
+++ b/httemplate/elements/change_password.html
@@ -44,7 +44,8 @@ function <%$pre%>toggle(toggle, clear) {
if (clear) {
document.getElementById('<%$pre%>password').value = '';
document.getElementById('<%$pre%>password_result').innerHTML = '';
-}
+ document.getElementById('<%$change_button_id%>').disabled = true;
+ }
document.getElementById('<%$pre%>div').style.display =
toggle ? 'inline-block' : 'none';
% if (!$opt{'no_label_display'}) {
diff --git a/httemplate/elements/random_pass.html b/httemplate/elements/random_pass.html
index 778aa20..3a632b9 100644
--- a/httemplate/elements/random_pass.html
+++ b/httemplate/elements/random_pass.html
@@ -19,6 +19,7 @@ function <% $id %>randomPass() {
for(var j, x, i = pass.length; i; j = Math.floor(Math.random() * i), x = pass[--i], pass[i] = pass[j], pass[j] = x);
pass = pass.join('');
document.getElementById('<% $id %>').value = pass;
+ document.getElementById('<% $id %>_result').innerHTML = '<IMG SRC="<% $p %>images/tick.png" style="width: 1em; display: inline-block; padding-right: .5em"> <SPAN STYLE="color: green;">Password valid!</SPAN>';
% if ($submitid) {
document.getElementById('<% $submitid %>').disabled = false;
% }