Skip to content

Commit

Permalink
Allow users to click a group name to show all users in that group
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidStirling committed Sep 20, 2024
1 parent da5b7d1 commit aa50f46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@

{% for grp in myGroups %}
<li {% if grp.id == eContext.context.groupId %}class="current_group"{% endif %}>
<a href="#" data-gid="{{ grp.id }}">
{% if grp.id == active_group.id %}
<a href="{{ current_url }}?experimenter=-1" data-gid="{{ grp.id }}">
{% else %}
<a href="{% url 'change_active_group' %}?active_group={{grp.id}}&url={{ current_url }}?experimenter=-1" data-gid="{{ grp.id }}">
{% endif %}
<img
{% if grp.getDetails.getPermissions.isGroupWrite %} src="{% static 'webclient/image/group_green16.png' %}"
{% else %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,9 @@

// When hover or click on a Group, show Users...
$( "#groupList" ).on( "mouseenter click", "li a", function(event) {
event.preventDefault();
var gid = $(this).attr("data-gid");
$usersList.hide();
$("#groupMembers-" + gid).show();
return false;
});
});
}
Expand Down

0 comments on commit aa50f46

Please sign in to comment.