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:
ninadsp
2010-07-25 00:49:32 +05:30
parent 4f8c85b31d
commit 4c13428e28

View File

@@ -272,6 +272,14 @@ $(document).ready(function() {
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);
}
//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 {