bug #3971 Ctrl/shift + click opens links in same window

This commit is contained in:
Rouslan Placella 2013-06-09 07:42:21 -04:00 committed by Marc Delisle
parent 70a3d4ac47
commit b5089cf908
2 changed files with 4 additions and 1 deletions

View File

@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
- bug #3965 Default language wrong with zh-TW
- bug #3921 Call to undefined function PMA_isSuperuser() if default server is
not set
- bug #3971 Ctrl/shift + click opens links in same window
4.0.3.0 (2013-06-05)
- bug #3941 Recent tables list always empty

View File

@ -128,7 +128,9 @@ var AJAX = {
// leave the browser deal with it natively (e.g: file download)
// or leave an existing ajax event handler present elsewhere deal with it
var href = $(this).attr('href');
if ($(this).attr('target')) {
if (event.shiftKey || event.ctrlKey) {
return true;
} else if ($(this).attr('target')) {
return true;
} else if ($(this).hasClass('ajax') || $(this).hasClass('disableAjax')) {
return true;