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:
parent
db3d4a0d7d
commit
2aafa78f08
4 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ $(document).ready(function(){
|
||||||
window.close();
|
window.close();
|
||||||
[% END %]
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
$("fieldset.rows input,select").addClass("noEnterSubmit");
|
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||||
/* Inline edit/delete links */
|
/* Inline edit/delete links */
|
||||||
var biblionumber = $("input[name='biblionumber']").attr("value");
|
var biblionumber = $("input[name='biblionumber']").attr("value");
|
||||||
$("tr.editable td").click(function(event){
|
$("tr.editable td").click(function(event){
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#mancredit').preventDoubleFormSubmit();
|
$('#mancredit').preventDoubleFormSubmit();
|
||||||
$("fieldset.rows input").addClass("noEnterSubmit");
|
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||||
});
|
});
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$('#maninvoice').preventDoubleFormSubmit();
|
$('#maninvoice').preventDoubleFormSubmit();
|
||||||
$("fieldset.rows input").addClass("noEnterSubmit");
|
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||||
});
|
});
|
||||||
//]]>
|
//]]>
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$("fieldset.rows input,select").addClass("noEnterSubmit");
|
$("fieldset.rows input, fieldset.rows select").addClass("noEnterSubmit");
|
||||||
$("#guarantordelete").click(function() {
|
$("#guarantordelete").click(function() {
|
||||||
$("#contact-details").hide().find('a').remove();
|
$("#contact-details").hide().find('a').remove();
|
||||||
$("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
|
$("#guarantorid, #contactname, #contactfirstname").each(function () { this.value = "" });
|
||||||
|
|
Loading…
Reference in a new issue