On deleting users, the classes of the rows remaining are re-adjusted so the table looks the way its supposed to
This commit is contained in:
@@ -272,6 +272,14 @@ $(document).ready(function() {
|
|||||||
if($("#tableuserrights").find('input:checkbox[value^=' + this_user_initial + ']').length == 0) {
|
if($("#tableuserrights").find('input:checkbox[value^=' + this_user_initial + ']').length == 0) {
|
||||||
$("#initials_table").find('td > a:contains(' + this_user_initial + ')').parent('td').html(this_user_initial);
|
$("#initials_table").find('td > a:contains(' + this_user_initial + ')').parent('td').html(this_user_initial);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Re-check the classes of each row
|
||||||
|
$("#usersForm")
|
||||||
|
.find('tbody').find('tr:odd')
|
||||||
|
.removeClass('even').addClass('odd')
|
||||||
|
.end()
|
||||||
|
.find('tr:even')
|
||||||
|
.removeClass('odd').addClass('even');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user