Skip to content

Instantly share code, notes, and snippets.

Fegul fegul

  • MD
Block or report user

Report or block fegul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@fegul
fegul / gist:1271627
Created Oct 7, 2011
Rails 3.1 UJS callback handling
View gist:1271627
$(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'} ) ;
});
});
You can’t perform that action at this time.