RT# 75817 - fixed issue with contact edit on edit customer page
[freeside.git] / httemplate / edit / cust_main / contacts_new.html
index 1171e7d..9031425 100644 (file)
@@ -1,3 +1,17 @@
+<SCRIPT>
+  function checkPasswordValidation(fieldid)  {
+    var validationResult = document.getElementById(fieldid+'_result').innerHTML;
+    if (validationResult.match(/Password valid!/)) {
+      return true;
+    }
+    else {
+      return false;
+    }
+  }
+</SCRIPT>
+
+<& '/elements/validate_password_js.html', &>
+
 <DIV ID="contacts_div" STYLE="display:<% $display %>">
 <BR>
 <FONT CLASS="fsinnerbox-title">Contacts</FONT>
@@ -5,6 +19,7 @@
      'embed'            => $opt{cust_main},
      'table'            => 'cust_main',
      'agent_virt'       => 1,
+     'submit_id'        => $opt{submit_id},
      'html_table_class' => 'fsinnerbox',
      'labels'           => { 'contactnum'  => '', #'Contact',
                              #'locationnum' => '&nbsp;',