]> git.joonet.de Git - adminer.git/commitdiff
Fix SQL command autofocus
authorJakub Vrana <jakub@vrana.cz>
Sun, 9 Apr 2017 10:29:42 +0000 (12:29 +0200)
committerJakub Vrana <jakub@vrana.cz>
Sun, 9 Apr 2017 10:30:34 +0000 (12:30 +0200)
adminer/sql.inc.php
changes.txt

index 296cfc56e6894e4a4b4daa42561d9d8d2cb2cd19..17334c93d44ea32e688f2b2cc85da07440eba35e 100644 (file)
@@ -208,7 +208,7 @@ if (!isset($_GET["import"])) {
        }
        echo "<p>";
        textarea("query", $q, 20);
-       echo ($_POST ? "" : "<script type='text/javascript'>focus(document.getElementsByTagName('textarea')[0]);</script>\n");
+       echo ($_POST ? "" : "<script type='text/javascript'>document.getElementsByTagName('textarea')[0].focus();</script>\n");
        echo "<p>$execute\n";
        echo lang('Limit rows') . ": <input type='number' name='limit' class='size' value='" . h($_POST ? $_POST["limit"] : $_GET["limit"]) . "'>\n";
        
index 02dee7a65d9a86b519c4533fea94291e5b3f5ebd..0d7ab06b72a12fe1537d80ea0bb6b2b03a03ab66 100644 (file)
@@ -1,5 +1,6 @@
 Adminer 4.3.1-dev:
 Fix permanent login after logout (bug #539)
+Fix SQL command autofocus (regression from 4.0.0)
 PostgreSQL: Support JSON and JSONB data types
 PostgreSQL: Fix index size computation in PostgreSQL < 9.0 (regression from 4.3.0)
 PostgreSQL: Fix nullable fields in export