diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-21 10:28:46 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2020-06-21 10:43:22 +0200 |
commit | 52e40517a51637bee9a5780259b88ee3f28599a2 (patch) | |
tree | 939915b9bfb170c3a4199ca855e77131c6e83225 /src/ws/node.js | |
parent | 670be0598230c39da18aaa5899d83baa056023f8 (diff) |
Enable use of mouse selection inside the title and description editor input fields.
Diffstat (limited to 'src/ws/node.js')
-rw-r--r-- | src/ws/node.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ws/node.js b/src/ws/node.js index 75fe1ec..5ecfdac 100644 --- a/src/ws/node.js +++ b/src/ws/node.js @@ -239,6 +239,17 @@ Node.prototype.create = function() } }; +//! Recursively set draggable property from node until root node. +Node.prototype.setDraggable = function(value) +{ + var node = this.element; + node.draggable = value; + if(this.parent != null) + { + this.parent.setDraggable(value); + } +}; + function checkHTML(html) { var doc = document.createElement('p'); |