mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Fixed tree title updating after batch action completion
This commit is contained in:
parent
f39680206a
commit
36ed7d255f
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user