Bug 11563: (follow-up) add noEnterSubmit class to pulldowns

When using Chrome on Mac OS X, form submits are triggered by hitting
enter when focused on a select. This is not an issue with any other
combination of browser and operating system that I am aware of.

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Kyle M Hall 2014-03-07 09:05:31 -05:00 committed by Galen Charlton
parent 1226f901ce
commit db3d4a0d7d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ $(document).ready(function(){
window.close();
[% END %]
[% END %]
$("fieldset.rows input").addClass("noEnterSubmit");
$("fieldset.rows input,select").addClass("noEnterSubmit");
/* Inline edit/delete links */
var biblionumber = $("input[name='biblionumber']").attr("value");
$("tr.editable td").click(function(event){

View File

@ -8,7 +8,7 @@
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
$("fieldset.rows input").addClass("noEnterSubmit");
$("fieldset.rows input,select").addClass("noEnterSubmit");
$("#guarantordelete").click(function() {
$("#contact-details").hide().find('a').remove();
$("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });