Verified Commit aa7aa783 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: unhighlight

parent b4c6bf08
......@@ -50,7 +50,7 @@ var edit_mode = new function() {
}
this.prop_dragleave = function(e) {
$(this).css("background-color", "");
edit_mode.unhighlight(this);
}
this.prop_dragover = function(e) {
......@@ -86,8 +86,8 @@ var edit_mode = new function() {
// Dropping a Property or RecordType in the main panel will add it as a
// property. This is done by this function.
this.prop_drop = function(e) {
$(this).css("background-color", "");
e.preventDefault();
edit_mode.unhighlight(this);
var panel = this; // the element which owns the listener
edit_mode.add_dropped_property(e, panel);
}
......@@ -121,9 +121,8 @@ var edit_mode = new function() {
// This is done by this function.
this.parent_drop = function(e) {
e.preventDefault();
$(this).css("background-color", "");
var panel = this; // the element which owns the listener
edit_mode.add_dropped_parent(e, panel);
edit_mode.unhighlight(this);
edit_mode.add_dropped_parent(e, this);
}
this.set_entity_dropable = function(entity, dragover, dragleave, parent_drop, property_drop) {
......
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