X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fchange_password.html;fp=httemplate%2Felements%2Fchange_password.html;h=7d95e19dcf65313a5401b6d8aa415cfb973a8694;hb=998b32d356338772484814a477d9efb159206b8d;hp=463384f2fc5756fb8fbf03ea028e6cdbc0b7a247;hpb=23f29deffa1fc6bc1a7b904c80f71db2d76dc26e;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 = @_;