summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorivan <ivan>2010-04-07 08:24:12 +0000
committerivan <ivan>2010-04-07 08:24:12 +0000
commit9f991af44fca1656eebe4719c14d72c732b111d0 (patch)
tree29b52ec919b854a9fb928ee1e06a74d4bc4bb390 /httemplate/edit
parentb6e36782e425e116b976523e18825f9d6e4d18cb (diff)
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
Diffstat (limited to 'httemplate/edit')
-rwxr-xr-xhttemplate/edit/agent.cgi15
1 files changed, 14 insertions, 1 deletions
diff --git a/httemplate/edit/agent.cgi b/httemplate/edit/agent.cgi
index a0af9fa44..30a0865d3 100755
--- a/httemplate/edit/agent.cgi
+++ b/httemplate/edit/agent.cgi
@@ -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)" %>