[freeside-commits] freeside/httemplate/edit access_user.html, 1.8.4.1, 1.8.4.2

Ivan,,, ivan at wavetail.420.am
Wed Apr 7 01:15:59 PDT 2010


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv23614/edit

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	access_user.html 
Log Message:
in employee edit, fix form getting submitted before customer search can complete.  throws "status connecting to" error and custnum does not get filled in, RT#8014

Index: access_user.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/access_user.html,v
retrieving revision 1.8.4.1
retrieving revision 1.8.4.2
diff -u -w -d -r1.8.4.1 -r1.8.4.2
--- access_user.html	30 Mar 2010 02:53:11 -0000	1.8.4.1
+++ access_user.html	7 Apr 2010 08:15:57 -0000	1.8.4.2
@@ -42,6 +42,8 @@
                      '</TR></TD></TABLE>'
                      ;
                    },
+                 'onsubmit'  => 'check_user_custnum_search',
+                 'html_foot' => $check_user_custnum_search,
            )
 %>
 <%init>
@@ -49,4 +51,15 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
+my $check_user_custnum_search = <<END;
+  <SCRIPT TYPE="text/javascript">
+    function check_user_custnum_search(what) {
+      while ( user_custnum_search_active ) {
+        // javascript needs ambien
+      }
+      return true;
+    }
+  </SCRIPT>
+END
+
 </%init>



More information about the freeside-commits mailing list