Bug 11563: (follow-up) improve selector for adding noEnterSubmit to select elements

Test plan:
To test on modified pages:
- Press enter when cursor is on input or select and verify the form is not
submitted.

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:
Jonathan Druart 2014-03-25 09:30:14 +01:00 committed by Galen Charlton
parent db3d4a0d7d
commit 2aafa78f08
4 changed files with 4 additions and 4 deletions

View file

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

View file

@ -5,7 +5,7 @@
//<![CDATA[
$(document).ready(function(){
$('#mancredit').preventDoubleFormSubmit();
$("fieldset.rows input").addClass("noEnterSubmit");
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
});
//]]>
</script>

View file

@ -5,7 +5,7 @@
//<![CDATA[
$(document).ready(function(){
$('#maninvoice').preventDoubleFormSubmit();
$("fieldset.rows input").addClass("noEnterSubmit");
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
});
//]]>
</script>

View file

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