From dd55626317d191b6528fe1b8f1d8d267157df748 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 15 Jun 2020 20:49:22 +0200 Subject: Major overhaul of visuals. --- src/ws/view.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/ws/view.js') 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); -- cgit v1.2.3