MINOR Fixed tree title updating after batch action completion

This commit is contained in:
Ingo Schommer 2012-03-06 21:37:08 +01:00
parent f39680206a
commit 36ed7d255f

View File

@ -233,7 +233,10 @@
// TODO This should use a more common serialization in a new tree library
if(data.modified) {
for(id in data.modified) {
tree.jstree('set_title', tree.getNodeByID(id), data.modified[id]['TreeTitle']);
var node = tree.getNodeByID(id);
// Can't use built-in set_title() as it sanitized the HTML (removing tags)
// $(node).find('.text').html(data.modified[id]['TreeTitle']);
tree.jstree('set_text', node, data.modified[id]['TreeTitle']);
}
}
if(data.deleted) {