MINOR Highlighting modified nodes (basic success visualization)

This commit is contained in:
Ingo Schommer 2012-03-08 01:47:26 +01:00
parent 27d23633ea
commit 139ccc37da

View File

@ -242,10 +242,13 @@
var id, node; var id, node;
if(data.modified) { if(data.modified) {
var modifiedNodes = [];
for(id in data.modified) { for(id in data.modified) {
node = tree.getNodeByID(id); node = tree.getNodeByID(id);
tree.jstree('set_text', node, data.modified[id]['TreeTitle']); tree.jstree('set_text', node, data.modified[id]['TreeTitle']);
modifiedNodes.push(node);
} }
$(modifiedNodes).effect('highlight');
} }
if(data.deleted) { if(data.deleted) {
for(id in data.deleted) { for(id in data.deleted) {