Thomas Bruederli
2015-02-24 230ec1104f9c6e980fa4d9d2066413c823487bd1
program/js/treelist.js
@@ -366,6 +366,12 @@
    indexbyid[node.id] = node;
    // set new reference to node.html after insert
    // will otherwise vanish in Firefox 3.6
    if (typeof node.html == 'object') {
        indexbyid[node.id].html = id2dom(node.id, true).children();
    }
    if (sort) {
      resort_node(li, typeof sort == 'string' ? '[class~="' + sort + '"]' : '');
    }