Created
October 7, 2011 23:45
-
-
Save fegul/1271627 to your computer and use it in GitHub Desktop.
Rails 3.1 UJS callback handling
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
$(document).ready(function(){ | |
$('.submit').bind('ajax:success', function(){ | |
$('.request_notice').text("You've been successfully added to the list!"); | |
$('.notice').addClass('success').slideDown('2000'); | |
$('#wrapper').animate({height: '+=20'} ) ; | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment