From 9612ff150a12cd7ac192f65000d3f75ee7c7739c Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Tue, 18 Jun 2013 17:36:08 +0530 Subject: [PATCH] Single click on relational link should lead to the foreign record --- js/ajax.js | 2 +- js/makegrid.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ajax.js b/js/ajax.js index eab0e842ae..5b99c3f198 100644 --- a/js/ajax.js +++ b/js/ajax.js @@ -128,7 +128,7 @@ 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 (event.shiftKey || event.ctrlKey) { + if (typeof event != 'undefined' && (event.shiftKey || event.ctrlKey)) { return true; } else if ($(this).attr('target')) { return true; diff --git a/js/makegrid.js b/js/makegrid.js index 3a9ebb619c..f81518d789 100644 --- a/js/makegrid.js +++ b/js/makegrid.js @@ -1634,7 +1634,7 @@ function PMA_makegrid(t, enableResize, enableReorder, enableVisib, enableGridEdi e.preventDefault(); // get the click count and increase var clicks = $cell.data('clicks'); - clicks = (clicks === null) ? 1 : clicks + 1; + clicks = (typeof clicks === 'undefined') ? 1 : clicks + 1; if (clicks == 1) { // if there are no previous clicks,