Sha256: 2d6c663471a49d7f884617785737d3870bc5d06bc7dc4b3d663d1fa6eed0d2f2
Contents?: true
Size: 552 Bytes
Versions: 10
Compression:
Stored size: 552 Bytes
Contents
$(".photo_holder").html('<img id="photo_edited" src="#{@edited_photo.thumb.url}"></img>'); previous = $("#itemContainer").find("li##{@edited_photo.id}").prev(); $("#itemContainer").find("li##{@edited_photo.id}").remove(); $("#itemContainer").find("#modaledit_#{@edited_photo.id}").remove(); if (previous.attr("id")){ previous.after("#{j render :template => '/backend/photos/photo', :locals => {photo: @edited_photo} }"); } else { $("#itemContainer").prepend("#{j render :template => '/backend/photos/photo', :locals => {photo: @edited_photo} }"); }
Version data entries
10 entries across 10 versions & 1 rubygems