RT# 75357 - now new contact row in created in correct place
[freeside.git] / httemplate / elements / contact.html
index 909ff78..599f662 100644 (file)
@@ -191,8 +191,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;
 
@@ -204,6 +206,6 @@ my $js = qq(
       else { document.getElementById("changepw$id\_password").disabled = 'true'; }
       return false;
     }
-);
+) unless $opt{'for_prospect'};
 
 </%init>