Commit 423b34c7 by dragonfi

Used dash-separated-names for events

parent d159c853
...@@ -102,7 +102,7 @@ function DragAndDropBlock(runtime, element) { ...@@ -102,7 +102,7 @@ function DragAndDropBlock(runtime, element) {
target.removeClass('within-dropzone fade'); target.removeClass('within-dropzone fade');
var item_id = target.data("value"); var item_id = target.data("value");
publish_event({event_type:'xblock.drag-and-drop-v2.item.pickedup', item_id:item_id}); publish_event({event_type:'xblock.drag-and-drop-v2.item.picked-up', item_id:item_id});
}, },
stop: function(event, ui) { stop: function(event, ui) {
...@@ -251,7 +251,5 @@ function DragAndDropBlock(runtime, element) { ...@@ -251,7 +251,5 @@ function DragAndDropBlock(runtime, element) {
dragAndDrop.init(data); dragAndDrop.init(data);
}); });
publish_event({ publish_event({event_type:"xblock.drag-and-drop-v2.loaded"});
event_type:"xblock.drag-and-drop-v2.loaded"
});
} }
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