Avoid showing open in new window for AJAX requests.

This commit is contained in:
Michal Čihař
2011-01-28 10:24:34 +01:00
parent 39bc66df25
commit b2fa59876b

View File

@@ -168,7 +168,7 @@ if (!isset($GLOBALS['checked_special'])) {
$GLOBALS['checked_special'] = false;
}
if (PMA_getenv('SCRIPT_NAME') && empty($_POST) && !$GLOBALS['checked_special']) {
if (PMA_getenv('SCRIPT_NAME') && empty($_POST) && !$GLOBALS['checked_special'] && ! $GLOBALS['is_ajax_request']) {
echo '<div id="selflink" class="print_ignore">' . "\n";
$url_params['target'] = basename(PMA_getenv('SCRIPT_NAME'));
?>