summaryrefslogtreecommitdiff
path: root/src/ws/view.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ws/view.js')
-rw-r--r--src/ws/view.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/ws/view.js b/src/ws/view.js
index 1586389..4be20aa 100644
--- a/src/ws/view.js
+++ b/src/ws/view.js
@@ -125,7 +125,8 @@ function dragenter(e)
{
return;
}
- e.target.style.backgroundColor = "#646588";
+
+ e.target.style.backgroundColor = "#c4ffd0";
last_over = e.target;
}
@@ -139,7 +140,7 @@ function dragover(e)
// }
e.preventDefault();
-
+/*
var after = getElementAfter(e);
if(last_after != null)
{
@@ -150,6 +151,7 @@ function dragover(e)
after.style.borderColor = "red black black black";
}
last_after = after;
+*/
}
function dragleave(e)
@@ -160,7 +162,7 @@ function dragleave(e)
return;
}
- e.target.style.backgroundColor = "#aaa";
+ e.target.style.backgroundColor = "";
}
function dragEnd(e)
@@ -177,7 +179,7 @@ function dragEnd(e)
// return;
// }
- e.target.style.backgroundColor = "#aaa";
+ //e.target.style.backgroundColor = "";
if(last_after != null)
{
@@ -187,7 +189,7 @@ function dragEnd(e)
if(last_over != null)
{
- last_over.style.backgroundColor = "#aaa";
+ last_over.style.backgroundColor = "";
last_over = null;
}
@@ -352,6 +354,7 @@ function onLostFocusHandler(e)
function editTitle(e)
{
+ console.log("!");
e.stopPropagation();
const idstr = e.target.parentElement.parentElement.id;
var node = findNodeFromString(idstr);