X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fchange_password.html;h=7d95e19dcf65313a5401b6d8aa415cfb973a8694;hb=381992561d7b1a88e05d49d3e474a2fad25873c7;hp=463384f2fc5756fb8fbf03ea028e6cdbc0b7a247;hpb=59776b97e0d82e30e9a50c76d16f302309fff76d;p=freeside.git diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index 463384f2f..7d95e19dc 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -13,7 +13,7 @@ % }
% if (!$opt{'noformtag'}) { -
+ % } <% $change_id_input %> @@ -33,9 +33,6 @@ 'contactnum' => $opt{'contact_num'}, 'submitid' => $change_button_id, &> -% if ( $error ) { -
<% $error |h %> -% } % if (!$opt{'noformtag'}) {
@@ -58,6 +55,16 @@ function <%$pre%>toggle(toggle, clear) { toggle ? 'none' : 'inline'; % } } + +function checkPasswordValidation() { + var validationResult = document.getElementById('<%$pre%>password_result').innerHTML; + if (validationResult.match(/Password valid!/)) { + return true; + } + else { + return false; + } +} <%init> my %opt = @_;