fix progress hoohaw for internet exploder again, whew. also make sure error/finish...
[freeside.git] / httemplate / elements / progress-init.html
index ba9f6ed..ec485f4 100644 (file)
@@ -14,7 +14,8 @@
 <%= include('/elements/xmlhttp.html',
               'method' => 'POST',
               'url'    => $action,
-              'subs'   => [ $key.'start_job' ],
+              'subs'   => [ 'start_job' ],
+              'key'    => $key,
            )
 %>
 <SCRIPT TYPE="text/javascript" SRC="../elements/overlibmws.js"></SCRIPT>
@@ -30,7 +31,9 @@ function <%=$key%>process () {
 
   //alert('<%=$key%>process for form <%=$formname%>');
 
-  document.<%=$formname%>.submit.disabled=true;
+  if ( document.<%=$formname%>.submit.disabled == false ) {
+    document.<%=$formname%>.submit.disabled=true;
+  }
 
   overlib( 'Submitting job to server...', WIDTH, 444, HEIGHT, 168, CAPTION, 'Please wait...', STICKY, AUTOSTATUSCAP, CLOSETEXT, '', CLOSECLICK, MIDX, 0, MIDY, 0 );