closes #38 (toggling group visibility)

This commit is contained in:
Steffen Vogel 2011-01-15 23:21:46 +01:00
parent c3903262dc
commit a43f9a6744

View file

@ -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;
});
}