From a7df1afe60e10f991a017559c9057c40ae20eadb 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=utf8 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 Signed-off-by: Kyle M Hall --- 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 16c1f5f100..3b652d5cc9 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -940,11 +940,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.39.5