Skip to content

Commit 4fe3753

Browse files
committed
Updated to not manually call form submit bindings in IE for jquery 1.7 and greater, since jquery apparently fixed this in 1.7
1 parent 8a57466 commit 4fe3753

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rails.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335

336336
// If browser does not support submit bubbling, then this live-binding will be called before direct
337337
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
338-
if (!$.support.submitBubbles && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
338+
if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
339339

340340
rails.handleRemote(form);
341341
return false;

0 commit comments

Comments
 (0)