Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
bmp-caosdb
caosdb-webui
Commits
aa7aa783
Verified
Commit
aa7aa783
authored
Mar 29, 2019
by
Timm Fitschen
Browse files
BUG: unhighlight
parent
b4c6bf08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/js/edit_mode.js
View file @
aa7aa783
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment