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

pull/280/head
Thomas Bruederli 9 years ago
parent 44f58b0bcb
commit 230ec1104f

@ -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