cacher les colonnes visite et manager du tableau des users non affectés au groupe (ref #202)

This commit is contained in:
afornerot 2020-09-11 13:44:55 +02:00
parent f21fb579c4
commit 16d24deab1
1 changed files with 6 additions and 5 deletions

View File

@ -30,9 +30,9 @@
<th width="70px" class="no-sort">Avatar</th>
<th width="200px">Login</th>
<th>Email</th>
<th class="no-sort">Visite</th>
<th class="no-sort no-visible">Visite</th>
{% if group.fgcanshare %}
<th class="no-sort">Manager</th>
<th class="no-sort no-visible">Manager</th>
{% endif %}
</tr>
</thead>
@ -115,10 +115,11 @@
success: function(data, dataType)
{
var row=$("#dataTablesnotin").DataTable().row("#user"+userid);
var rowNode = row.node();
row.remove().draw();
data=row.data();
var rowNode = row.node();
$("#dataTablesin").DataTable().row.add(rowNode).draw();
$("#dataTablesin").DataTable().row.add(data).draw();
row.remove().draw();
},
error: function(XMLHttpRequest, textStatus, errorThrown)