Sha256: d095e7f719ddc7d2d42bf3445e0b517dbbdb6897d5b9f4754d66cc41e49975de
Contents?: true
Size: 202 Bytes
Versions: 2
Compression:
Stored size: 202 Bytes
Contents
// Prevent enter key from submitting the form $(document).on('keypress', '.app-main form :input:not(textarea):not([type=submit])', function(e) { if (e.keyCode == 13) { e.preventDefault(); } });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.5 | app/assets/javascripts/trestle/_form.js |
trestle-0.8.4 | app/assets/javascripts/trestle/_form.js |