- drop: (ev, ui) ->
- $(ev.target).removeClass 'accepting'
-
- added = $(ui.draggable).clone()
- $added = added
- $added.data("original", ui.draggable)
- if not ismultiple
- $(ui.draggable).addClass('disabled').draggable('disable')
-
- $(ev.target).after(added)
- if not $(ev.target).hasClass('multiple')
- $(ev.target).hide()
- $added.append('<span class="remove">x</span>')
- $('.remove', added).click (ev) =>
- $added.prev(".placeholder:not(.multiple)").show()
- if not ismultiple
- $added.data('original').removeClass('disabled').draggable('enable')
- $(added).remove()
+ drop: (ev, ui) =>
+ $(ev.target).removeClass 'accepting dragover'
+
+ @draggable_move $(ui.draggable), $(ev.target), ismultiple
+
+ # $added = $(ui.draggable).clone()
+ # $added.data("original", ui.draggable)
+ # if not ismultiple
+ # $(ui.draggable).addClass('disabled').draggable('disable')
+
+ # $(ev.target).after(added)
+ # if not $(ev.target).hasClass('multiple')
+ # $(ev.target).hide()
+ # $added.append('<span class="remove">x</span>')
+ # $('.remove', added).click (ev) =>
+ # $added.prev(".placeholder:not(.multiple)").show()
+ # if not ismultiple
+ # $added.data('original').removeClass('disabled').draggable('enable')
+ # $(added).remove()