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>
(cherry picked from commit 5cea7144bc)

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 5cea7144bc)

Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit 47349148c7)
This commit is contained in:
Jonathan Druart 2013-05-23 09:33:48 +02:00 committed by Chris Hall
parent 68bad5874a
commit be77fa0035
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;
}