Fix displaying of organizations
This commit is contained in:
parent
10eab0bbe0
commit
683c509391
2 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ function filtertables() {
|
|||
orga_id = $("#orgaselect option:selected").val();
|
||||
$("tbody tr").each(function(i, row)
|
||||
{
|
||||
if ($.inArray(parseInt(orga_id, "10"), $(row).data('orga')) !== -1) $(row).show();
|
||||
if ($(row).attr('class') == "orgarow" || $(row).data('orga') && $.inArray(parseInt(orga_id, "10"), $(row).data('orga')) !== -1) $(row).show();
|
||||
else $(row).hide();
|
||||
});
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@
|
|||
</thead>
|
||||
{% userOrgas as organizations %}
|
||||
{% for orga in organizations %}
|
||||
<tr>
|
||||
<tr class="orgarow">
|
||||
<td><div style="display:inline;">{{ orga.name }}</div></td>
|
||||
<td>{{ orga.users.all|length }}{% if orga.userlimit %}/{{ orga.userlimit }}{% endif %}</td>
|
||||
<td><a href="/organizations/{{ orga.id }}/edit"><i class="fas fa-edit" title="Edit Organization"></i></a> <a href="#"><i style="color: darkred;" onclick="askdeleteorga({{ orga.id }});" class="fas fa-trash-alt" title="Delete Organization"></i></a></td>
|
||||
|
|
Loading…
Reference in a new issue