From 0b3d0d9c60140d487634a947eb1b3d2eb2af91ad Mon Sep 17 00:00:00 2001 From: Christopher Burger Date: Tue, 25 Sep 2018 13:19:46 -0400 Subject: RT# 75817 - fixed selecting random password on custmain page --- httemplate/elements/change_password.html | 3 ++- httemplate/elements/random_pass.html | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'httemplate/elements') diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index 65b7d8502..068d7d73c 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 778aa20e6..3a632b9af 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 = ' Password valid!'; % if ($submitid) { document.getElementById('<% $submitid %>').disabled = false; % } -- cgit v1.2.1