Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

Closed
wants to merge 1 commit into from

2 participants

Rouslan Placella Marc Delisle
Marc Delisle
Owner
lem9 commented June 09, 2013

Thanks Rouslan,
I generated another commit in your name with this patch, to apply to QA_4_0, then merged to master.

Marc Delisle lem9 closed this June 09, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 09, 2013
Rouslan Placella Fixed bug #3971 - Ctrl/shift + click opens links in same window 06d3bc3
This page is out of date. Refresh to see the latest.

Showing 2 changed files with 4 additions and 1 deletion. Show diff stats Hide diff stats

  1. 1  ChangeLog
  2. 4  js/ajax.js
1  ChangeLog
@@ -25,6 +25,7 @@ phpMyAdmin - ChangeLog
25 25
 - bug #3965 Default language wrong with zh-TW
26 26
 - bug #3921 Call to undefined function PMA_isSuperuser() if default server is
27 27
 not set 
  28
+- bug #3971 Ctrl/shift + click opens links in same window
28 29
 
29 30
 4.0.3.0 (2013-06-05)
30 31
 - bug #3941 Recent tables list always empty
4  js/ajax.js
@@ -128,7 +128,9 @@ var AJAX = {
128 128
         // leave the browser deal with it natively (e.g: file download)
129 129
         // or leave an existing ajax event handler present elsewhere deal with it
130 130
         var href = $(this).attr('href');
131  
-        if ($(this).attr('target')) {
  131
+        if (event.shiftKey || event.ctrlKey) {
  132
+            return true;
  133
+        } else if ($(this).attr('target')) {
132 134
             return true;
133 135
         } else if ($(this).hasClass('ajax') || $(this).hasClass('disableAjax')) {
134 136
             return true;
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.