Permalink
Browse files

MINOR Fixed tree title updating after batch action completion

  • Loading branch information...
1 parent f396802 commit 36ed7d255f68385b65546bdb30ac987e7a5ab7bf @chillu chillu committed Mar 6, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 admin/javascript/LeftAndMain.BatchActions.js
@@ -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) {

0 comments on commit 36ed7d2

Please sign in to comment.