Skip to content

Instantly share code, notes, and snippets.

@fivetwentysix
Created November 25, 2010 10:14
Show Gist options
  • Save fivetwentysix/715159 to your computer and use it in GitHub Desktop.
Save fivetwentysix/715159 to your computer and use it in GitHub Desktop.
var targetDiv = $('edit_reply_<%= @reply.id %>').getParent('div');
var highlightEffect = function() {
targetDiv.setStyle('color', '#ffa');
};
new Request.HTML({
url: '<%= instruction_instruction_item_reply_path(:id => @reply.id) %>',
update: targetDiv,
onSuccess: highlightEffect
}).get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment