Created
October 31, 2013 12:12
-
-
Save nicoolas25/7248668 to your computer and use it in GitHub Desktop.
Use Rails's Javascript remote calls on div.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($){ | |
$(document).on('rails:attachBindings', function(){ | |
$.rails.buttonClickSelector = $.rails.buttonClickSelector + ', div[data-remote]'; | |
return true; | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment