summaryrefslogtreecommitdiff
path: root/src/ws/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ws/node.js')
-rw-r--r--src/ws/node.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ws/node.js b/src/ws/node.js
index 6ff8e50..e2af81e 100644
--- a/src/ws/node.js
+++ b/src/ws/node.js
@@ -159,11 +159,17 @@ Node.prototype.setAttribute = function(name, value)
{
if(value == "true")
{
+ // Make transparent and non-draggable
this.element.style.opacity = "0.3";
+ // TODO: Apply recursively?
+ this.element.setAttribute("draggable", false);
}
else
{
+ // Make opaque and draggable again
this.element.style.opacity = "1.0";
+ // TODO: Apply recursively?
+ this.element.setAttribute("draggable", true);
}
}
};