]> git.joonet.de Git - adminer.git/commitdiff
Fix JS error on Ctrl+click in select
authorJakub Vrana <jakub@vrana.cz>
Sun, 14 Sep 2014 21:19:05 +0000 (14:19 -0700)
committerJakub Vrana <jakub@vrana.cz>
Sun, 14 Sep 2014 21:49:39 +0000 (14:49 -0700)
adminer/static/functions.js

index c18fe9bc4c2194bd7e5ca1e75c5a54f67198ba27..cbb89fcc1b73388eafb826054834009bba90a13e 100644 (file)
@@ -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) {