cirandas.net

ref: master

app/views/box_organizer/move_block.rjs


from = "box-#{@source_box.id}"
to = "box-#{@target_box.id}"

page.replace_html(from, display_updated_box(@source_box))
page.replace_html(to, display_updated_box(@target_box))

page.visual_effect(:highlight, from)
page.visual_effect(:highlight, to) unless (from == to)