From 96247fe28335656ed7b1697a0ad1ce2dc6bc7f95 Mon Sep 17 00:00:00 2001 From: Hugues Peccatte Date: Tue, 21 Jul 2015 14:20:39 +0200 Subject: [PATCH] Revert CSS selector modification. Signed-off-by: Hugues Peccatte --- js/ajax.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index 4b342fc14f..a5a70f91a7 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -390,13 +390,12 @@ var AJAX = { .not('#pma_console_container') .not('#prefs_autoload') .remove(); - var $page_content = $('#page_content'); // Replace #page_content with new content if (data.message && data.message.length > 0) { - $page_content.replaceWith( + $('#page_content').replaceWith( "
" + data.message + "
" ); - PMA_highlightSQL($page_content); + PMA_highlightSQL($('#page_content')); checkNumberOfFields(); } @@ -432,8 +431,8 @@ var AJAX = { PMA_commonParams.setAll(data._params); } if (data._displayMessage) { - $page_content.prepend(data._displayMessage); - PMA_highlightSQL($page_content); + $('#page_content').prepend(data._displayMessage); + PMA_highlightSQL($('#page_content')); } $('#pma_errors').remove();