Sha256: 35f966703746f52cd35f2cef59c8bac437a18c8baa62378e2247ae9866430bca
Contents?: true
Size: 909 Bytes
Versions: 6
Compression:
Stored size: 909 Bytes
Contents
I"(function() { $(document).on("ready page:load", 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
6 entries across 3 versions & 1 rubygems