From 3db2b8fbeb81f71949b0218ca74d502e00fa87d2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 2 Feb 2017 11:10:30 +0100 Subject: [PATCH] Bug 14224: Fix prevent submit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That did not work, the form was submitted anyway Signed-off-by: Jonathan Druart Signed-off-by: Josef Moravec Signed-off-by: Marc VĂ©ron --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt index c22d5b0..8f0cc94 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -912,11 +912,13 @@ Using this account is not recommended because some parts of Koha will not functi $("a[name='nonjs_submitnote']").hide(); $("input[name='note']").prop('readonly', false); - $("input[name='note']").keyup(function(e){ + $("input[name='note']").keypress(function(e){ /* prevent submitting of renewselected form */ if(e.which == 13) e.preventDefault(); + }); + $("input[name='note']").keyup(function(e){ var $btn_save = $('#save_'+$(this).data('issue_id')); var origvalue = $(this).data('origvalue'); var value = $(this).val(); -- 2.1.4