Show error message when trying to change password right after changing password, see bug #3547670
This commit is contained in:
parent
ef65ca306a
commit
b77acffe43
@ -2598,6 +2598,13 @@ $(function() {
|
||||
$(this).dialog('close');
|
||||
};
|
||||
$.get($(this).attr('href'), {'ajax_request': true}, function(data) {
|
||||
if (data.error) {
|
||||
var $temp_div = $("<div id='temp_div'></div>");
|
||||
$temp_div.html(data.error);
|
||||
var $error = $temp_div.addClass("error");
|
||||
PMA_ajaxShowMessage($temp_div, false);
|
||||
return false;
|
||||
}
|
||||
$('<div id="change_password_dialog"></div>')
|
||||
.dialog({
|
||||
title: PMA_messages['strChangePassword'],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user