Sha256: 922fd26d8b2992ce50f5867a0aad17a2f9d603d8b33234b35cda1db0d0202c8d
Contents?: true
Size: 1.38 KB
Versions: 4
Compression:
Stored size: 1.38 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"anti-spam.js; FI" pathname; TI"S/Users/rchaves/Sites/AntiSpam/anti_spam/vendor/assets/javascripts/anti-spam.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+vÎbTI"length; TiÃI"digest; TI"%1d039e2fa41e2154b38efac164c4b532; FI"source; TI"Ã(function(){ var antiSpamizeForms = function(){ var forms = document.querySelectorAll("form"); for(var i = 0, max = forms.length; i < max; i++){ var form = forms[i]; form.onsubmit = function(){ if(form.querySelectorAll('input.antispam_token').length == 0){ var input = document.createElement('input'); input.type = 'hidden'; input.name = 'antispam_token'; input.className = 'antispam_token' input.value = '<%= AntiSpam.token %>'; form.appendChild(input); form.submit(); return false; } } } } if(document.attachEvent){ document.attachEvent("onreadystatechange", antiSpamizeForms); document.attachEvent("onload", antiSpamizeForms); }else{ document.addEventListener('DOMContentLoaded', antiSpamizeForms, false); document.addEventListener('load', antiSpamizeForms, false); document.addEventListener('page:load', antiSpamizeForms, false); // for turbolinks } })(); ; TI"required_assets_digest; TI"%a8b0ab617c25281be5953111f3ef0bb2; FI" _version; TI"%d978939c91fa8a88b4612c4140ee433d; F
Version data entries
4 entries across 2 versions & 1 rubygems