From 192d0edae612239aa13e36b8f1f2628fb41ed148 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Sun, 20 Feb 2011 08:59:07 +0530 Subject: [PATCH] Bug #3187078 Main page ajax results tiny. --- js/functions.js | 4 ---- user_password.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/js/functions.js b/js/functions.js index 07c623766..28e89f087 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2016,11 +2016,7 @@ $(document).ready(function() { $.post($(the_form).attr('action'), $(the_form).serialize() + '&change_pw='+ this_value, function(data) { if(data.success == true) { - - PMA_ajaxShowMessage(data.message); - $("#topmenucontainer").after(data.sql_query); - $("#change_password_dialog").hide().remove(); $("#edit_user_dialog").dialog("close").remove(); } diff --git a/user_password.php b/user_password.php index d3b577b7c..9787cc1a4 100644 --- a/user_password.php +++ b/user_password.php @@ -110,7 +110,7 @@ if (isset($_REQUEST['nopass'])) { $message = PMA_Message::success(__('The profile has been updated.')); if($GLOBALS['is_ajax_request'] == true) { - $extra_data['sql_query'] = PMA_showMessage(NULL, $sql_query, 'success'); + $extra_data['sql_query'] = PMA_showMessage($message, $sql_query, 'success'); PMA_ajaxResponse($message, true, $extra_data); }