Avoid showing open in new window for AJAX requests.
This commit is contained in:
@@ -168,7 +168,7 @@ if (!isset($GLOBALS['checked_special'])) {
|
|||||||
$GLOBALS['checked_special'] = false;
|
$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";
|
echo '<div id="selflink" class="print_ignore">' . "\n";
|
||||||
$url_params['target'] = basename(PMA_getenv('SCRIPT_NAME'));
|
$url_params['target'] = basename(PMA_getenv('SCRIPT_NAME'));
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user