diff --git a/adminer/db.inc.php b/adminer/db.inc.php index a096d699..c17f0807 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -136,7 +136,8 @@ if ($adminer->homepage()) { echo (support("copy") ? " " : ""); echo "\n"; } - echo "\n"; // used by trCheck() + echo ""; // used by trCheck() + echo script("qsl('input').onclick = function () { selectCount('selected', formChecked(this, /^(tables|views)\[/));" . (support("table") ? " selectCount('selected2', formChecked(this, /^tables\[/) || $tables);" : "") . " }"); echo "\n"; echo "\n"; } diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php index 34512347..0b43ee3e 100644 --- a/adminer/indexes.inc.php +++ b/adminer/indexes.inc.php @@ -132,7 +132,7 @@ foreach ($row["indexes"] as $index) { } echo "
" . ($num_rows ? ($limit && $num_rows > $limit ? lang('%d / ', $limit) : "") . lang('%d row(s)', $num_rows) : "");
echo $time;
$id = "export-$commands";
- $export = ", " . lang('Export') . ": "
+ $export = ", " . lang('Export') . "" . script("qsl('a').onclick = partial(toggle, '$id');", "") . ": "
. html_select("output", $adminer->dumpOutput(), $adminer_export["output"]) . " "
. html_select("format", $dump_format, $adminer_export["format"])
. ""
@@ -145,7 +145,7 @@ if (!$error && $_POST) {
;
if ($connection2 && preg_match("~^($space|\\()*+SELECT\\b~i", $q) && ($explain = explain($connection2, $q))) {
$id = "explain-$commands";
- echo ", EXPLAIN$export";
+ echo ", EXPLAIN" . script("qsl('a').onclick = partial(toggle, '$id');", "") . $export;
echo "