Update the privileges field in the usersForm table when the user is changed

This commit is contained in:
ninadsp
2010-07-23 00:18:15 +05:30
parent 85d42b8a57
commit 4054332641
2 changed files with 22 additions and 0 deletions

View File

@@ -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);