diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index 4df94f9b..30a2a45e 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -179,11 +179,11 @@ if (DB != "") { foreach ($tables_list as $name => $type) { $prefix = preg_replace('~_.*~', '', $name); $checked = ($TABLE == "" || $TABLE == (substr($TABLE, -1) == "%" ? "$prefix%" : $name)); //! % may be part of table name - $print = "" . checkbox("tables[]", $name, $checked, $name, "formUncheck('check-tables');", "block"); + $print = "" . checkbox("tables[]", $name, $checked, $name, "", "block"); if ($type !== null && !preg_match('~table~i', $type)) { $views .= "$print\n"; } else { - echo "$print\n"; + echo "$print\n"; } $prefixes[$prefix]++; } @@ -203,7 +203,7 @@ if (DB != "") { foreach ($databases as $db) { if (!information_schema($db)) { $prefix = preg_replace('~_.*~', '', $db); - echo "" . checkbox("databases[]", $db, $TABLE == "" || $TABLE == "$prefix%", $db, "formUncheck('check-databases');", "block") . "\n"; + echo "" . checkbox("databases[]", $db, $TABLE == "" || $TABLE == "$prefix%", $db, "", "block") . "\n"; $prefixes[$prefix]++; } } diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 6e42cfe3..8f4c4b13 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -411,7 +411,12 @@ function partitionNameChange() { function dumpClick(event) { var el = parentTag(getTarget(event), 'label'); if (el) { - checkboxClick.call(el.firstChild, event); + el = qs('input', el); + var match = /(.+)\[\]$/.exec(el.name); + if (match) { + checkboxClick.call(el, event); + formUncheck('check-' + match[1]); + } } }