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

Version Path
mokio-0.0.15 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.14 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.13 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.12 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.11 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.10 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.9 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.8 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.6 app/views/mokio/backend/photos/rotate_thumb.js.haml
mokio-0.0.5 app/views/mokio/backend/photos/rotate_thumb.js.haml