Skip to content

Commit

Permalink
MINOR Fixed tree title updating after batch action completion
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Mar 6, 2012
1 parent f396802 commit 36ed7d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion admin/javascript/LeftAndMain.BatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 36ed7d2

Please sign in to comment.