[freeside-commits] freeside/httemplate/edit agent.cgi,1.21,1.22
Ivan,,,
ivan at wavetail.420.am
Wed Apr 7 01:24:13 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv24028
Modified Files:
agent.cgi
Log Message:
also in agent 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: agent.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/agent.cgi,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -w -d -r1.21 -r1.22
--- agent.cgi 5 May 2009 22:02:28 -0000 1.21
+++ agent.cgi 7 Apr 2010 08:24:11 -0000 1.22
@@ -4,7 +4,20 @@
<% include('/elements/error.html') %>
-<FORM ACTION="<%popurl(1)%>process/agent.cgi" METHOD=POST>
+<FORM METHOD = POST
+ ACTION = "<%popurl(1)%>process/agent.cgi"
+ onSubmit = "return check_agent_custnum_search(this)"
+>
+
+<SCRIPT TYPE="text/javascript">
+ function check_agent_custnum_search(what) {
+ while ( agent_custnum_search_active ) {
+ // javascript needs ambien
+ }
+ return true;
+ }
+</SCRIPT>
+
<INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>">
Agent #<% $agent->agentnum ? $agent->agentnum : "(NEW)" %>
More information about the freeside-commits
mailing list