Skip to content

Commit

Permalink
Changed caret icon directions
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 1, 2022
1 parent 990c58b commit 2b81c42
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions View/GrouperGroups/base.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ $this->Html->addCrumb(_txt('pl.grouperlite.crumb.root'), array('controller' => '
$('.grouper-table .collapse-btn').on('click', function(ev) {
var btn = $(ev.currentTarget);
if (btn.hasClass('collapsed')) {
btn.find('em.material-icons').text('arrow_right');
} else {
btn.find('em.material-icons').text('arrow_drop_down');
} else {
btn.find('em.material-icons').text('arrow_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 .material-icons').text('arrow_drop_down');
$(this).parent().find('.collapse-btn .material-icons').text('arrow_right');
});
</script>
6 changes: 3 additions & 3 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text collapse-btn <?php echo $collapsed ? 'collapsed' : ''; ?> fw-bold m-0" data-toggle="collapse" data-target=".collapse-adhoc-group-parent" role="button" aria-expanded="<?php echo $collapsed ? 'false' : 'true'; ?>">
<?php echo $config['adHocHeading'] ?? 'Ad-hoc groups'; ?>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_drop_down' : 'arrow_right' ?></em>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_right' : 'arrow_drop_down' ?></em>
</button>
</td>
</tr>
Expand Down Expand Up @@ -79,7 +79,7 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text <?php echo $collapsed ? 'collapsed' : ''; ?> collapse-btn fw-bold m-0 work-group-heading-btn" data-toggle="collapse" data-target=".collapse-wg-working-group-parent" role="button" aria-expanded="<?php echo $collapsed ? 'false' : 'true'; ?>">
<?php echo $config['wgHeading'] ?? 'Working groups'; ?>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_drop_down' : 'arrow_right' ?></em>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_right' : 'arrow_drop_down' ?></em>
</button>
</td>
</tr>
Expand All @@ -95,7 +95,7 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<?php $name = $wggroup['workingGroupId']; ?>
<span class="grpr-popover-toggle" data-container="body" data-toggle="popover" data-placement="top" data-content="<?php echo substr($name, 0, strrpos($name, ':')); ?>" data-trigger="click">
<?php echo $wggroup['WGShowName'] ?? "No Name"; ?>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_drop_down' : 'arrow_right' ?></em>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_right' : 'arrow_drop_down' ?></em>
</span>
</button>
</td>
Expand Down
2 changes: 1 addition & 1 deletion View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text collapse-btn <?php echo $collapsed ? 'collapsed' : ''; ?> fw-bold m-0" data-toggle="collapse" data-target=".collapse-adhoc-group-parent" role="button" aria-expanded="<?php echo $collapsed ? 'false' : 'true'; ?>">
<?php echo $config['adHocHeading'] ?? 'Ad-hoc groups'; ?>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_drop_down' : 'arrow_right' ?></em>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_right' : 'arrow_drop_down' ?></em>
</button>
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $collapsed = $config['defaultCollapse'] === 'collapsed' ? true : false;
<td colspan="<?php echo $numColumns; ?>">
<button type="button" class="btn btn-link btn-text collapse-btn <?php echo $collapsed ? 'collapsed' : ''; ?> fw-bold m-0" data-toggle="collapse" data-target=".collapse-adhoc-group-parent" role="button" aria-expanded="<?php echo $collapsed ? 'false' : 'true'; ?>">
<?php echo $config['adHocHeading'] ?? 'Ad-hoc groups'; ?>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_drop_down' : 'arrow_right' ?></em>
<em class="material-icons mt-0" aria-hidden="true"><?php echo $collapsed ? 'arrow_right' : 'arrow_drop_down' ?></em>
</button>
</td>
</tr>
Expand Down

0 comments on commit 2b81c42

Please sign in to comment.