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 "\n"; - echo "\n"; + echo "" . script("qsl('input').onclick = partial(editingRemoveRow, 'indexes\$1[type]');"); } $j++; } diff --git a/adminer/schema.inc.php b/adminer/schema.inc.php index ff80018e..ecb8304d 100644 --- a/adminer/schema.inc.php +++ b/adminer/schema.inc.php @@ -53,14 +53,13 @@ foreach (table_status('', true) as $table => $table_status) { var tablePos = {}; var em = qs('#schema').offsetHeight / ; document.onmousemove = schemaMousemove; -document.onmouseup = function (ev) { - schemaMouseup(ev, ''); -}; +document.onmouseup = partialArg(schemaMouseup, ''); $table) { - echo "
"; + echo "
"; echo '' . h($name) . ""; + echo script("qsl('div').onmousedown = schemaMousedown;"); foreach ($table["fields"] as $field) { $val = '' . h($field["field"]) . ''; diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index a3c5410f..f218dc93 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -137,7 +137,7 @@ if (!$error && $_POST) { echo "

" . ($num_rows ? ($limit && $num_rows > $limit ? lang('%d / ', $limit) : "") . lang('%d row(s)', $num_rows) : ""); echo $time; $id = "export-$commands"; - $export = ", " . lang('Export') . "

\n"; diff --git a/adminer/user.inc.php b/adminer/user.inc.php index c7e85956..59a082e0 100644 --- a/adminer/user.inc.php +++ b/adminer/user.inc.php @@ -169,7 +169,11 @@ foreach (array( } elseif (isset($_GET["grant"])) { echo ""; } else { - echo ""; //! uncheck all except grant if all is checked + echo ""; } $i++; }