{include file=$EASYCAPTCHA_ABS_PATH|cat:'template/common.inc.tpl'}
{* *}
{if $EASYCAPTCHA_CHALLENGE == 'drag'}
|
{footer_script}
var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha"]')[0], {ldelim} onlyOnSubmit: true });
captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Pleaser answer'|translate}" });
{/footer_script}
{* *}
{else if $EASYCAPTCHA_CHALLENGE == 'tictac'}
|
{footer_script}
var captcha_code = new LiveValidation(jQuery('input[name="easycaptcha_key"]')[0], {ldelim} onlyOnSubmit: true });
captcha_code.add(Validate.Custom, {ldelim}
failureMessage: "{'Pleaser answer'|translate}",
against: function() {ldelim}
return jQuery('input[name="easycaptcha"]:checked').length != 0;
}
});
{/footer_script}
{/if}
{$smarty.capture.easycaptcha}
|