From bca00bf51453cfe86bf8d604d4e078641a9b7789 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 28 Aug 2012 08:19:52 -0400 Subject: [PATCH] Bug 8215 - Add Course Reserves - Followup - Prevent submitting form on 'enter' Content-Type: text/plain; charset="utf-8" When using the instructor search, hitting enter will attempt to submit the form. This is unwanted behavior. Fixed by adding some jquery, such that any form field with the class "noEnterSubmit" will but trigger a form submission. This class can be used on any form in the librarian interface to prevent a field from triggering a form submission via the enter key. --- .../prog/en/includes/doc-head-close.inc | 9 +++++++++ .../prog/en/modules/course_reserves/course.tt | 2 +- 2 files changed, 10 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc index 32eae21..22a8854 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc @@ -67,3 +67,12 @@ var NO_LOCAL_JACKET = _("No cover image available"); //]]> [% END %] + + diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt index bc2fd1b..00dcfd2 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/course_reserves/course.tt @@ -183,7 +183,7 @@ function RemoveInstructor( cardnumber ) {
- +
  • -- 1.7.2.5