summaryrefslogtreecommitdiff
path: root/httemplate/edit/access_user.html
diff options
context:
space:
mode:
authorivan <ivan>2010-04-07 08:15:55 +0000
committerivan <ivan>2010-04-07 08:15:55 +0000
commit9d69622a6bd83de2add9c2ba9accfe435993bbb1 (patch)
tree1b4fd562cb5f489d88944c35afc60fbb7001a442 /httemplate/edit/access_user.html
parentc354e082415cd3fe1c48301bd2d5e75af5efedcc (diff)
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
Diffstat (limited to 'httemplate/edit/access_user.html')
-rw-r--r--httemplate/edit/access_user.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/httemplate/edit/access_user.html b/httemplate/edit/access_user.html
index 1f52b4789..cbced75b1 100644
--- a/httemplate/edit/access_user.html
+++ b/httemplate/edit/access_user.html
@@ -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>