RT#41671 Fix double click prevention for all legacy buttons [renamed all from submit...
[freeside.git] / httemplate / edit / elements / ApplicationCommon.html
index a531eaa..9c068c1 100644 (file)
@@ -103,7 +103,7 @@ function changed(what) {
   dst = what.options[what.selectedIndex].value;
 
   if ( dst == '' ) {
-    what.form.submit.disabled=true;
+    what.form.submitButton.disabled=true;
 %if ($use_sub_dst_thing && $src_pkey eq 'crednum') {
     what.form.tax_button.disabled=true;
     what.form.clear_button.disabled=true;
@@ -111,7 +111,7 @@ function changed(what) {
     return true;
   }
 
-  what.form.submit.disabled=false;
+  what.form.submitButton.disabled=false;
 %if ($use_sub_dst_thing && $src_pkey eq 'crednum') {
   what.form.tax_button.disabled=false;
   what.form.clear_button.disabled=false;
@@ -373,7 +373,7 @@ function src_amount_changed () {
 <BR>
 <CENTER><INPUT TYPE="submit"
                VALUE="Apply"
-               NAME="submit"
+               NAME="submitButton"
                ID="submit"
 % if ($use_sub_dst_thing && $can_change_credit) {
                onClick="src_amount_changed()"