poder apretar enter en los otros formularios
This commit is contained in:
parent
9599b10324
commit
f1fd0b511f
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue