Bug 10310: Followup Prevent submitting form with enter does not work with IE
Check e.target.type instead of using jQuery. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Galen Charlton <gmc@esilibrary.com> (cherry picked from commitc4978ef178) Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com> (cherry picked from commit5cea7144bc) Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> (cherry picked from commit5cea7144bc) Signed-off-by: Chris Hall <followingthepath@gmail.com> (cherry picked from commit47349148c7)
This commit is contained in:
parent
68bad5874a
commit
be77fa0035
|
|
@ -3,7 +3,7 @@ $(document).ready(function() {
|
|||
$("#doc3 form").keypress(function (e) {
|
||||
if( e.which == 13
|
||||
&& e.target.nodeName == "INPUT"
|
||||
&& $(e.target).attr('type') != "submit"
|
||||
&& e.target.type != "submit"
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue