Bug 11292 [QA Followup] - Use noEnterSubmit instead of new keypress handler
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 16 Jun 2014 11:30:03 +0000 (07:30 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 24 Jun 2014 12:39:53 +0000 (09:39 -0300)
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/js/cataloging.js

index 62c8b51..25ed3c2 100644 (file)
@@ -483,7 +483,5 @@ function CheckMandatorySubfields(p){
 }
 
  $(document).ready(function() {
-    $("body").on("keypress", ".input_marceditor, .indicator", function(e){
-        return checkEnter(e);
-    });
+    $(".input_marceditor, .indicator").addClass('noEnterSubmit');
 });