diff options
| author | ivan <ivan> | 2010-04-07 08:24:11 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2010-04-07 08:24:11 +0000 | 
| commit | 8b2b3f00e7c857de3a9bab764c415478acc83e27 (patch) | |
| tree | d57f9420da29ee8b7ca1261fdc6d3f1eb12870e8 | |
| parent | 9d69622a6bd83de2add9c2ba9accfe435993bbb1 (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
| -rwxr-xr-x | httemplate/edit/agent.cgi | 15 | 
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)" %> | 
