X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Felements%2Fchange_password.html;h=068d7d73ce129058577d5c4bdd8d7154f4e00088;hb=f48ffc61601d08024aeff19ecd07d7420fc4e5b3;hp=463384f2fc5756fb8fbf03ea028e6cdbc0b7a247;hpb=59776b97e0d82e30e9a50c76d16f302309fff76d;p=freeside.git diff --git a/httemplate/elements/change_password.html b/httemplate/elements/change_password.html index 463384f2f..068d7d73c 100644 --- a/httemplate/elements/change_password.html +++ b/httemplate/elements/change_password.html @@ -11,9 +11,9 @@ % if (!$opt{'no_label_display'}) { (<% emt( $change_title ) %>) % } -
+
% 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'}) {
@@ -47,17 +44,25 @@ function <%$pre%>toggle(toggle, clear) { if (clear) { document.getElementById('<%$pre%>password').value = ''; document.getElementById('<%$pre%>password_result').innerHTML = ''; -% if ($opt{'contact_num'}) { - document.getElementById('<% $opt{'pre_pwd_field_label'} %>selfservice_access').value = 'Y'; -% } -} - document.getElementById('<%$pre%>form').style.display = + document.getElementById('<%$change_button_id%>').disabled = true; + } + document.getElementById('<%$pre%>div').style.display = toggle ? 'inline-block' : 'none'; % if (!$opt{'no_label_display'}) { document.getElementById('<%$pre%>link').style.display = toggle ? 'none' : 'inline'; % } } + +function <%$pre%>checkPasswordValidation(resultId) { + var validationResult = document.getElementById('<%$pre%>password_result').innerHTML; + if (validationResult.match(/Password valid!/)) { + return true; + } + else { + return false; + } +} <%init> my %opt = @_; @@ -76,8 +81,8 @@ if ($opt{'svc_acct'}) { } elsif ($opt{'contact_num'}) { $change_id_input = ' - - + + '; $pre .= $opt{'pre_pwd_field_label'}; }