Fixed the bug where the initials_table division landed up at the bottom

of the page after an ajax request completed.
Also, fixed the issue due to which the edit users dialog was empty
This commit is contained in:
ninadsp
2010-06-30 00:38:28 +05:30
parent fe92d38e38
commit 7f062310c6

View File

@@ -1342,7 +1342,7 @@ if (isset($_REQUEST['flush_privileges'])) {
* *
* @todo How to show the queries? Refactoring PMA_ajaxShowMessage might help * @todo How to show the queries? Refactoring PMA_ajaxShowMessage might help
*/ */
if( $GLOBALS['is_ajax_request'] && !isset($_REQUEST['export']) && !isset($_REQUEST['adduser']) && !isset($_REQUEST['initial']) && !isset($_REQUEST['showall'])) { if( $GLOBALS['is_ajax_request'] && !isset($_REQUEST['export']) && !isset($_REQUEST['adduser']) && !isset($_REQUEST['initial']) && !isset($_REQUEST['showall']) && !isset($_REQUEST['edit_user_dialog'])) {
PMA_ajaxResponse($message, $message->isSuccess()); PMA_ajaxResponse($message, $message->isSuccess());
} }
@@ -1498,7 +1498,7 @@ if (empty($_REQUEST['adduser']) && (! isset($checkprivs) || ! strlen($checkprivs
* Displays the initials * Displays the initials
*/ */
if( !$GLOBALS['is_ajax_request'] ) { if( $GLOBALS['is_ajax_request'] != true ) {
// initialize to FALSE the letters A-Z // initialize to FALSE the letters A-Z
for ($letter_counter = 1; $letter_counter < 27; $letter_counter++) { for ($letter_counter = 1; $letter_counter < 27; $letter_counter++) {