diff --git a/adminer/select.inc.php b/adminer/select.inc.php
index 4fdf439f..ec36873c 100644
--- a/adminer/select.inc.php
+++ b/adminer/select.inc.php
@@ -384,7 +384,7 @@ if (!$columns && support("table")) {
$unique_idf .= "&" . ($val !== null ? urlencode("where[" . bracket_escape($key) . "]") . "=" . urlencode($val) : "null%5B%5D=" . urlencode($key));
}
echo "
" . (!$group && $select ? "" : ""
- . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]), "", "this.form['all'].checked = false; formUncheck('all-page');")
+ . checkbox("check[]", substr($unique_idf, 1), in_array(substr($unique_idf, 1), (array) $_POST["check"]))
. ($is_group || information_schema(DB) ? "" : " " . lang('edit') . "")
);
diff --git a/adminer/static/functions.js b/adminer/static/functions.js
index 7bdd8801..30c04c73 100644
--- a/adminer/static/functions.js
+++ b/adminer/static/functions.js
@@ -273,6 +273,10 @@ function tableClick(event, click) {
el.checked = !el.checked;
el.onclick && el.onclick();
}
+ if (el.name == 'check[]') {
+ el.form['all'].checked = false;
+ formUncheck('all-page');
+ }
trCheck(el);
}
|