From: Jakub Vrana Date: Sun, 14 Sep 2014 21:19:05 +0000 (-0700) Subject: Fix JS error on Ctrl+click in select X-Git-Tag: v4.2.0~38 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=a987a2a4de58ea4378c99def58e434bd38335a4d;p=adminer.git Fix JS error on Ctrl+click in select --- diff --git a/adminer/static/functions.js b/adminer/static/functions.js index c18fe9bc..cbb89fcc 100644 --- a/adminer/static/functions.js +++ b/adminer/static/functions.js @@ -186,6 +186,9 @@ function tableClick(event, click) { click = false; } el = el.parentNode; + if (!el) { // Ctrl+click on text fields hides the element + return; + } } el = el.firstChild.firstChild; if (click) {