diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2015-03-12 19:51:40 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2015-03-12 19:52:06 +0100 |
commit | d17975c7763ed41710276e8cf4704d6764f174c9 (patch) | |
tree | 6083e7cee377f8303dea3fd255ed3fc882f28e84 /program | |
parent | bba0d88978b28c6f9eca65fff903adbb9074437e (diff) |
Do not re-append an existing node when re-rendering with childs
Diffstat (limited to 'program')
-rw-r--r-- | program/js/treelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/program/js/treelist.js b/program/js/treelist.js index 2927d02e5..9e6baabd3 100644 --- a/program/js/treelist.js +++ b/program/js/treelist.js @@ -334,7 +334,7 @@ function rcube_treelist_widget(node, p) // re-render the entire subtree if (parent_node.children.length == 1) { - render_node(parent_node, parent_li.parent(), parent_li); + render_node(parent_node, null, parent_li); li = id2dom(node.id); } else { |