Ignore:
Timestamp:
Dec 21, 2013, 6:39:06 PM (10 years ago)
Author:
mistic100
Message:

try to simplify integration of captchas

Location:
extensions/CryptograPHP/template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/CryptograPHP/template/contactform.tpl

    r26041 r26072  
    1 </tr>     
    21<tr>
    32  <td class="title">
     
    1110  </td>
    1211
    13 {footer_script}
    14 var captcha_code = new LiveValidation("captcha_code", {ldelim} onlyOnSubmit: true, insertAfterWhatNode: "captcha_refresh" });
    15 captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Invalid Captcha'|translate}" });
    16 {/footer_script}
     12  {footer_script}
     13  var captcha_code = new LiveValidation("captcha_code", {ldelim} onlyOnSubmit: true, insertAfterWhatNode: "captcha_refresh" });
     14  captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Invalid Captcha'|translate}" });
     15  {/footer_script}
     16</tr>
  • extensions/CryptograPHP/template/guestbook.tpl

    r26041 r26072  
    1   </td>
    2 </tr>
    31<tr>
    42  <td>
     
    108    <a href="#" id="captcha_refresh" onclick="document.getElementById('captcha').src = '{$CRYPTO_PATH}securimage/securimage_show.php?'+Math.random(); return false;">
    119      <img src="{$CRYPTO_PATH}template/refresh_{$CRYPTO.button_color}.png" style="vertical-align:bottom;"></a>
     10  </td>
    1211
    13 {footer_script}
    14 var captcha_code = new LiveValidation("captcha_code", {ldelim} onlyOnSubmit: true });
    15 captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Invalid Captcha'|translate}" });
    16 {/footer_script}
     12  {footer_script}
     13  var captcha_code = new LiveValidation("captcha_code", {ldelim} onlyOnSubmit: true });
     14  captcha_code.add(Validate.Presence, {ldelim} failureMessage: "{'Invalid Captcha'|translate}" });
     15  {/footer_script}
     16</tr>
Note: See TracChangeset for help on using the changeset viewer.