diff --git a/js/server_privileges.js b/js/server_privileges.js index 4bc8ae7bf..26a85bdf5 100755 --- a/js/server_privileges.js +++ b/js/server_privileges.js @@ -252,6 +252,8 @@ $(document).ready(function() { PMA_ajaxShowMessage(); + $(this).parents('tr').addClass('current_row'); + var button_options = {}; button_options[PMA_messages['strCancel']] = function() {$(this).dialog("close").remove();} @@ -327,6 +329,17 @@ $(document).ready(function() { $("#initials_table").find('td:contains('+data.new_user_initial+')') .html(data.new_user_initial_string); } + + if(data.new_privileges) { + $("#usersForm") + .find('.current_row') + .find('tt') + .html(data.new_privileges); + } + + $("#usersForm") + .find('.current_row') + .removeClass('current_row'); } else { PMA_ajaxShowMessage(data.error); diff --git a/server_privileges.php b/server_privileges.php index 397190663..317186038 100755 --- a/server_privileges.php +++ b/server_privileges.php @@ -1372,9 +1372,11 @@ $link_export = 'isSuccess(), $extra_data); }