mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Highlighting modified nodes (basic success visualization)
This commit is contained in:
parent
27d23633ea
commit
139ccc37da
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user