Skip to content

Commit

Permalink
Merge pull request #583 from DavidStirling/clicky
Browse files Browse the repository at this point in the history
Allow users to click a group name to quick-switch to that group
  • Loading branch information
knabar authored Nov 19, 2024
2 parents 2dd58a2 + dd28796 commit 2bd2a55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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 == ome.active_group %}
<a href="#" data-gid="{{ grp.id }}">
{% else %}
<a href="{% url 'change_active_group' %}?active_group={{grp.id}}" data-gid="{{ grp.id }}">
{% endif %}
<img
{% if grp.getDetails.getPermissions.isGroupWrite %} src="{% static 'webclient/image/group_green16.png' %}"
{% else %}
Expand All @@ -50,7 +54,7 @@

{% for grp in groups %}
<li {% if grp.id == eContext.context.groupId %}class="current_group"{% endif %}>
<a href="#" data-gid="{{ grp.id }}">
<a href="{% url 'change_active_group' %}?active_group={{grp.id}}&url={{ current_url }}?experimenter=-1" data-gid="{{ grp.id }}">
<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 2bd2a55

Please sign in to comment.