Skip to content

Instantly share code, notes, and snippets.

@skorfmann
Created January 12, 2010 12:39
Show Gist options
  • Save skorfmann/275158 to your computer and use it in GitHub Desktop.
Save skorfmann/275158 to your computer and use it in GitHub Desktop.
$('.images').append('<%= escape_javascript(render(:partial => "image", :object => @image)) %>');
$('#<%= dom_id(@image) %> span').rest_in_place('<%= image_path(@image) %>', 'image', 'title');
if ($('#images').css('display') == 'none') {
$('#images').slideDown(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment