From dd325738d65551c09504ebd21bcfc37d368cdecb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 14 Oct 2014 13:52:33 -0400 Subject: [PATCH] Bug 13080 - Addition of noEnterSubmit class should not apply to textarea, only to input The application of the "noEnterSubmit" class to textareas in the cataloging editor prevents the user from being able to use the Enter key to create line breaks. This is not intentional and should be corrected. This patch adds more specific scoping to the relevant JavaScript. To test, apply the patch and clear your browser cache if necessary. Open up the MARC editor and locate a tag which uses a textarea for entry. Try typing lines of text separated by line breaks. The enter key should work correctly. Signed-off-by: bondiurbano costalc@gmail.com Signed-off-by: Katrin Fischer Passes tests and fixes the problem. Signed-off-by: Tomas Cohen Arazi --- koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js index 25ed3c2743..70ae6f9c2f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js @@ -483,5 +483,5 @@ function CheckMandatorySubfields(p){ } $(document).ready(function() { - $(".input_marceditor, .indicator").addClass('noEnterSubmit'); + $("input.input_marceditor, input.indicator").addClass('noEnterSubmit'); }); -- 2.39.5