Skip to content

Commit b9e1a5d

Browse files
committed
Fix ext-columnview when all children are deleted
Close mar10#899
1 parent dafd3b2 commit b9e1a5d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* Apply and enforce 'prettier' codestyle
33
* [Fixed] #894: Fancytree assertion failed: scrollParent should be a simple element or `window`, not document or body.
44
* [Fixed] #896 _requireExtension: order managment
5+
* [Fixed] #899 Creating duplicate icon when removing node using extension columnview
6+
* [Fixed] #900 ColumnView Extension - Toggle between parent and children not working
57
* [Changed] #897 Set font for table extension
68

79
# 2.30.0 / 2018-09-02

src/jquery.fancytree.columnview.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,18 @@
163163
}
164164
return this._superApply(arguments);
165165
},
166+
nodeRemoveChildren: function(ctx) {
167+
// #899: node's children removed: remove child marker...
168+
$(ctx.node.span)
169+
.find("span.fancytree-cv-right")
170+
.remove();
171+
// ...and clear right columns
172+
ctx.tree.$tdList
173+
.eq(ctx.node.getLevel())
174+
.nextAll()
175+
.empty();
176+
return this._superApply(arguments);
177+
},
166178
nodeRender: function(ctx, force, deep, collapsed, _recursive) {
167179
// Render standard nested <ul> - <li> hierarchy
168180
this._super(ctx, force, deep, collapsed, _recursive);

0 commit comments

Comments
 (0)