X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Felements%2Fcontact.html;h=a9e1f23c977d787cf5f432e0459057699f0c9e24;hb=609e7cb967020e23f147f4e1b475fed97e37db30;hp=fef189e0c87d2298da6844f9bbb710ee9472e608;hpb=d7b4beaeb975c55f5203aef275c7c01853fa51f2;p=freeside.git diff --git a/httemplate/elements/contact.html b/httemplate/elements/contact.html index fef189e0c..a9e1f23c9 100644 --- a/httemplate/elements/contact.html +++ b/httemplate/elements/contact.html @@ -145,7 +145,6 @@ tie my %label, 'Tie::IxHash', 'last' => 'Last name', 'title' => 'Title/Position', 'emailaddress' => 'Email', - 'selfservice_access' => 'Self-service' ; unless ($opt{'for_prospect'}) { @@ -165,8 +164,10 @@ $label{'comment'} = 'Comment'; my @fields = $opt{'name_only'} ? qw( first last ) : keys %label; +my $submitid = $opt{'submit_id'} ? $opt{'submit_id'} : 'submit'; + my $js = qq( - add_password_validation('changepw$id\_password', 'submit', '', '$contactnum'); + add_password_validation('changepw$id\_password', '$submitid', '', '$contactnum'); var selfService = document.getElementById("$id\_selfservice_access").value; @@ -178,6 +179,6 @@ my $js = qq( else { document.getElementById("changepw$id\_password").disabled = 'true'; } return false; } -); +) unless $opt{'for_prospect'};