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>
(cherry picked from commit 2aafa78f08)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
835343a1ef
commit
0b85d44a56
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$('#mancredit').preventDoubleFormSubmit();
|
||||
$("fieldset.rows input").addClass("noEnterSubmit");
|
||||
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
//<![CDATA[
|
||||
$(document).ready(function(){
|
||||
$('#maninvoice').preventDoubleFormSubmit();
|
||||
$("fieldset.rows input").addClass("noEnterSubmit");
|
||||
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||
});
|
||||
//]]>
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -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 = "" });
|
||||
|
|
|
|||
Loading…
Reference in New Issue