Skip to content
This repository
Browse code

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...
commit 4fe37537cb2d8e71005303d3acb469e6205d26db 1 parent 8a57466
Steve Schwartz JangoSteve authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/rails.js
2  src/rails.js
@@ -335,7 +335,7 @@
335 335
336 336 // If browser does not support submit bubbling, then this live-binding will be called before direct
337 337 // 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);
339 339
340 340 rails.handleRemote(form);
341 341 return false;

0 comments on commit 4fe3753

Please sign in to comment.
Something went wrong with that request. Please try again.