Sha256: af780295422f137a7abe28455d8d2fac09e07eff3d486758fc2443175f488477
Contents?: true
Size: 877 Bytes
Versions: 3
Compression:
Stored size: 877 Bytes
Contents
I"a(function() { $(function() { $("button.reset").click(function() { var form; form = $(this).parents("form"); form.find("option").map(function() { if (this.value === "") { return this.selected = true; } }); form.find("input").map(function() { if (!this.type.match(/submit|hidden|button/)) { return this.value = ""; } }); form.find("textarea").val(""); return form.find("select").map(function() { if (this.selectize) { return this.selectize.clear(); } }); }); return $("form").submit(function() { var input; input = document.createElement("input"); input.type = "hidden"; input.name = "back_url"; input.value = location.href; return $(this).append(input); }); }); }).call(this); :ET
Version data entries
3 entries across 3 versions & 1 rubygems