error de sintaxis

This commit is contained in:
f 2019-09-16 13:13:53 -03:00
parent 78baad81e4
commit c1ebd43835
No known key found for this signature in database
GPG key ID: 2AE5A13E321F953D

View file

@ -1,11 +1,4 @@
$(document).on('turbolinks:load', function() {
// Previene el envío del formulario al presionar <Enter>
$(document).on('keypress', '.post :input:not(textarea):not([type=submit])', function(e) {
if (e.keyCode == 13) {
e.preventDefault();
e.stopPropagation();
}
});
// Al enviar el formulario del artículo, aplicar la validación
$('.submit-post').click(function(e) {