From 853d6dc263183e52d1cf86c133fa00069a1bb2bf Mon Sep 17 00:00:00 2001 From: "J.M" Date: Tue, 9 Oct 2012 22:00:23 +0200 Subject: [PATCH] Update status of checkall checkbox in server privileges after dropping or adding a user --- js/server_privileges.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/js/server_privileges.js b/js/server_privileges.js index f1dd2f4754..c2047088c5 100644 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -41,7 +41,7 @@ function checkAddUser(the_form) */ function appendNewUser(new_user_string, new_user_initial, new_user_initial_string) { - //Append the newly retrived user to the table now + //Append the newly retrieved user to the table now //Calculate the index for the new row var $curr_last_row = $("#usersForm").find('tbody').find('tr:last'); @@ -75,6 +75,9 @@ function appendNewUser(new_user_string, new_user_initial, new_user_initial_strin $("#initials_table").find('td:contains('+new_user_initial+')') .html(new_user_initial_string); + + //update the checkall checkbox + $(checkboxes_sel).trigger("change"); }; /**#@+ @@ -288,6 +291,9 @@ $(function() { .end() .find('tr:even') .removeClass('odd').addClass('even'); + + //update the checkall checkbox + $(checkboxes_sel).trigger("change"); }); } else { PMA_ajaxShowMessage(data.error, false);