Skip to content

Commit

Permalink
Fixed issue with children toggling
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Oct 27, 2021
1 parent 36576b5 commit e0a7f4f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions View/GrouperGroups/base.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,9 @@ $this->Html->addCrumb(_txt('pl.grouperlite.crumb.root'), array('controller' => '
btn.find('i').removeClass('fa-caret-down').addClass('fa-caret-right');
}
})

$('.collapse-wg-working-group-parent').on('hide.bs.collapse', function(ev) {
$(this).siblings('.collapse-wg-working-group').collapse('hide');
$(this).parent().find('.collapse-btn .fa-caret-down').removeClass('fa-caret-down').addClass('fa-caret-right');
});
</script>
5 changes: 3 additions & 2 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ $numColumns = count($columns);
<tbody>
<tr class="table-secondary">
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text collapse-btn fw-bold m-0" data-toggle="collapse" data-target=".collapse-wg-working-group-parent" role="button" aria-expanded="false">
<button type="button" class="btn btn-link btn-text collapse-btn fw-bold m-0 work-group-heading-btn" data-toggle="collapse" data-target=".collapse-wg-working-group-parent" role="button" aria-expanded="false">
Working groups
<i class="fa fa-caret-down fa-sm"></i>
</button>
Expand Down Expand Up @@ -128,7 +128,7 @@ $numColumns = count($columns);
</td>
</tr>
<?php foreach ($wggroup['Groups'] as $key => $group) : ?>
<tr class="collapse collapse-wg-<?php echo $wggroup['WGName']; ?>" id="collapse-wg-<?php echo $wggroup['WGName'] . '-' . $key; ?>">
<tr class="collapse collapse-wg-working-group collapse-wg-<?php echo $wggroup['WGName']; ?>" id="collapse-wg-<?php echo $wggroup['WGName'] . '-' . $key; ?>">
<td class="pl-3">
<?php echo $group['WGApp'] ?? "No Name"; ?>
</td>
Expand Down Expand Up @@ -161,4 +161,5 @@ $numColumns = count($columns);
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.groups.zero-state'); ?></p>
</div>
<?php endif; ?>

<?php echo $this->element('Components/subscriberList'); ?>
2 changes: 2 additions & 0 deletions View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,6 @@ $numColumns = count($columns);
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.groups.zero-state'); ?></p>
</div>
<?php endif; ?>


<?php echo $this->element('Components/subscriberList'); ?>

0 comments on commit e0a7f4f

Please sign in to comment.