Skip to content

Instantly share code, notes, and snippets.

@fegul fegul/gist:1271627
Created Oct 7, 2011

Embed
What would you like to do?
Rails 3.1 UJS callback handling
$(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
You can’t perform that action at this time.