Update internal reference to treelist node contents after insert. Fixes some strange behavior in FF 3.6

pull/229/merge
Thomas Bruederli 10 years ago
parent 8f485469c7
commit db6663b936

@ -366,6 +366,12 @@ function rcube_treelist_widget(node, p)
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 + '"]' : '');
}

Loading…
Cancel
Save