fidrelity / microbuilder

4 stars 0 forks source link

when deleting a graphic it does not disappear from the view right away #208

Closed egraether closed 11 years ago

egraether commented 11 years ago

page refresh could fix this

franzeus commented 11 years ago

hab das mit $(graphicID).hide() geloest

gotschi commented 11 years ago

damn, wollt ich grad selber fixen :D beim pushen hab ich dann gesehen dass _graphics.html.haml geändert wurde :P meine lösung anayway:

=link_to(graphic_path(graphic), :class=>"deleteGraphic",

// Remove deleted Graphic $("a.deleteGraphic").bind("ajax:complete", function(et, e){ $(this).closest("li").fadeOut(1000, function() { $(this).remove(); }); });