From 4c13428e2821446dbdbe569f7a92d6fa1ba0ceaa Mon Sep 17 00:00:00 2001 From: ninadsp Date: Sun, 25 Jul 2010 00:49:32 +0530 Subject: [PATCH] On deleting users, the classes of the rows remaining are re-adjusted so the table looks the way its supposed to --- js/server_privileges.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/server_privileges.js b/js/server_privileges.js index 821474eba..30a566d2e 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -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 {