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.