Sha256: 401fa6823c9a5c1c849236f5532e4f1b031617c121db40938f7dea174a42c4e2

Contents?: true

Size: 1.92 KB

Versions: 4

Compression:

Stored size: 1.92 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"application.js;TI"
pathname;TI"0$root/app/assets/javascripts/application.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+hÒbTI"length;Ti
I"digest;TI"%17b7b4882758e4fe688e074963500af5;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
	}

})();
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//

;
;TI"required_assets_digest;TI"%6189a0c226cacab6079872eb77fc5253;FI"
_version;TI"%d978939c91fa8a88b4612c4140ee433d;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
anti_spam-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
anti_spam-0.0.2 test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
anti_spam-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
anti_spam-0.0.1 test/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994