diff --git a/js/functions.js b/js/functions.js index d1fb1c1235..fc2f89865d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -2011,11 +2011,13 @@ function PMA_previewSQL($form) '&do_save_data=1' + '&preview_sql=1' + '&ajax_request=1'; + var $msgbox = PMA_ajaxShowMessage(); $.ajax({ type: 'POST', url: form_url, data: form_data, success: function (response) { + PMA_ajaxRemoveMessage($msgbox); if (response.success) { var $dialog_content = $('
') .append(response.sql_data);