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 commit c4978ef178)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
84481e7952
commit
5cea7144bc
|
|
@ -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