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:
parent
1226f901ce
commit
db3d4a0d7d
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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 = "" });
|
||||
|
|
|
|||
Loading…
Reference in New Issue