5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-22 14:06:21 +00:00

poder apretar enter en los otros formularios

This commit is contained in:
f 2019-07-08 18:13:03 -03:00
parent 9599b10324
commit f1fd0b511f
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D
2 changed files with 2 additions and 2 deletions

View file

@ -1,5 +1,5 @@
$(document).on('turbolinks:load', function() {
$(document).on('keypress', ':input:not(textarea):not([type=submit])', function(e) {
$(document).on('keypress', '.post :input:not(textarea):not([type=submit])', function(e) {
if (e.keyCode == 13) {
e.preventDefault();
e.stopPropagation();

View file

@ -21,7 +21,7 @@
= render 'layouts/help', help: CommonMarker.render_doc(pre).to_html
= form_tag url,
method: method,
class: "form #{@invalid ? 'was-validated' : ''}",
class: "form post #{@invalid ? 'was-validated' : ''}",
novalidate: true,
multipart: true do