Permalink
Browse files

Updated to not manually call form submit bindings in IE for jquery 1.…

…7 and greater, since jquery apparently fixed this in 1.7
  • Loading branch information...
1 parent 8a57466 commit 4fe37537cb2d8e71005303d3acb469e6205d26db @JangoSteve JangoSteve committed Nov 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rails.js
View
@@ -335,7 +335,7 @@
// If browser does not support submit bubbling, then this live-binding will be called before direct
// bindings. Therefore, we should directly call any direct bindings before remotely submitting form.
- if (!$.support.submitBubbles && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
+ if (!$.support.submitBubbles && $().jquery < '1.7' && rails.callFormSubmitBindings(form, e) === false) return rails.stopEverything(e);
rails.handleRemote(form);
return false;

0 comments on commit 4fe3753

Please sign in to comment.