Sha256: 4089d23f0159909c24819c427db686baf83d5202073408687efcf45763ca5380
Contents?: true
Size: 181 Bytes
Versions: 3
Compression:
Stored size: 181 Bytes
Contents
# Prevent enter key from submitting the form $(document).on 'keypress', '.app-main form :input:not(textarea):not([type=submit])', (e) -> if e.keyCode == 13 e.preventDefault()
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trestle-0.8.3 | app/assets/javascripts/trestle/_form.js.coffee |
trestle-0.8.2 | app/assets/javascripts/trestle/_form.js.coffee |
trestle-0.8.0 | app/assets/javascripts/trestle/_form.js.coffee |