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:
Jonathan Druart 2013-05-23 09:33:48 +02:00 committed by Tomas Cohen Arazi
parent 84481e7952
commit 5cea7144bc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}