Commit 5f390be4 by Filippo Valsorda

Fix: removed a critical callback during refactor

parent 47fc6791
...@@ -99,6 +99,7 @@ function DragAndDropBlock(runtime, element) { ...@@ -99,6 +99,7 @@ function DragAndDropBlock(runtime, element) {
$drag.on('dragstop', clk.drag.stop); $drag.on('dragstop', clk.drag.stop);
$dropzone.on('drop', clk.drop.success); $dropzone.on('drop', clk.drop.success);
$dropzone.on('dropover', clk.drop.hover);
}, },
drag: { drag: {
start: function(event, ui) { start: function(event, ui) {
...@@ -158,6 +159,10 @@ function DragAndDropBlock(runtime, element) { ...@@ -158,6 +159,10 @@ function DragAndDropBlock(runtime, element) {
} }
}, },
drop: { drop: {
hover: function(event, ui) {
var zone = $(event.currentTarget).data('zone');
ui.draggable.data('zone', zone);
},
success: function(event, ui) { success: function(event, ui) {
ui.draggable.addClass('within-dropzone'); ui.draggable.addClass('within-dropzone');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment