closes #38 (toggling group visibility)
This commit is contained in:
parent
c3903262dc
commit
a43f9a6744
1 changed files with 3 additions and 3 deletions
|
@ -279,9 +279,9 @@ vz.entities.show = function() {
|
|||
event.data.active = state;
|
||||
|
||||
if (entity.type == 'group') {
|
||||
entity.children.each(function(entity) {
|
||||
$('#entity-' + entity.uuid + ' input[type=checkbox]').attr('checked', state);
|
||||
entity.active = state;
|
||||
entity.children.each(function(child) {
|
||||
$('#entity-' + child.uuid + '.child-of-entity-' + entity.uuid + ' input[type=checkbox]').attr('checked', state);
|
||||
child.active = state;
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue