View Single Post
  #16  
Old 05-16-2007, 01:58 PM
 
nevets1219 nevets1219 is offline
 

eXpert
  
Join Date: Jun 2006
Posts: 351
 

Default Re: Disable the order submit button

I'd like to ask if the following lines of code does the same thing as what the thread is trying to accomplish in v4.1.6. Specifically the BOLDED part.

Code:
{assign var="button_href" value=$button_href|cat:" if(checkRequired(requiredFields)) if(checkDBClick()) document.checkout_form.submit()"}
That function is the following
Code:
<script type="text/javascript"> <!-- var so_click = false; {literal} function checkDBClick() { if (so_click) return false; so_click = true; return true; } {/literal} --> </script>
From what I see it does prevent double clicking but I'd like to be sure.
__________________
4.1.8
Reply With Quote