diff --git a/adminer/create.inc.php b/adminer/create.inc.php
index 2570d6f2..eca2694e 100644
--- a/adminer/create.inc.php
+++ b/adminer/create.inc.php
@@ -172,9 +172,13 @@ edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments);
: ">
-
+
-server_info >= 5.5 ? 2048 : 60) . '"' . ($comments ? '' : ' class="hidden"') . '>' : ''); ?>
+ " . lang('Comment') . ""
+ . ' '
+ : '')
+; ?>
>
diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php
index 58699658..cb51f181 100644
--- a/adminer/dump.inc.php
+++ b/adminer/dump.inc.php
@@ -164,8 +164,8 @@ $prefixes = array();
if (DB != "") {
$checked = ($TABLE != "" ? "" : " checked");
echo "";
- echo " " . lang('Tables') . " ";
- echo "" . lang('Data') . " ";
+ echo " " . lang('Tables') . " ";
+ echo "" . lang('Data') . " ";
echo " \n";
$views = "";
@@ -173,11 +173,11 @@ if (DB != "") {
foreach ($tables_list as $name => $type) {
$prefix = ereg_replace("_.*", "", $name);
$checked = ($TABLE == "" || $TABLE == (substr($TABLE, -1) == "%" ? "$prefix%" : $name)); //! % may be part of table name
- $print = "
" . checkbox("tables[]", $name, $checked, $name, "checkboxClick(event, this); formUncheck('check-tables');");
+ $print = " " . checkbox("tables[]", $name, $checked, $name, "checkboxClick(event, this); formUncheck('check-tables');", "block");
if ($type !== null && !eregi("table", $type)) {
$views .= "$print\n";
} else {
- echo "$print " . checkbox("data[]", $name, $checked, "", "checkboxClick(event, this); formUncheck('check-data');") . " \n";
+ echo "$print " . checkbox("data[]", $name, $checked, "", "checkboxClick(event, this); formUncheck('check-data');") . " \n";
}
$prefixes[$prefix]++;
}
@@ -188,13 +188,13 @@ if (DB != "") {
}
} else {
- echo " " . lang('Database') . " \n";
+ echo " " . lang('Database') . " \n";
$databases = $adminer->databases();
if ($databases) {
foreach ($databases as $db) {
if (!information_schema($db)) {
$prefix = ereg_replace("_.*", "", $db);
- echo "" . checkbox("databases[]", $db, $TABLE == "" || $TABLE == "$prefix%", $db, "formUncheck('check-databases');") . "\n";
+ echo " " . checkbox("databases[]", $db, $TABLE == "" || $TABLE == "$prefix%", $db, "formUncheck('check-databases');", "block") . "\n";
$prefixes[$prefix]++;
}
}
diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 7e21d55b..d42541ea 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -241,9 +241,9 @@ function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = arra
" onchange=" 1 ? "" : "editingAddRow(this); "); ?>editingNameChange(this);" maxlength="64" autocapitalize="off">
-
- checked onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }">
- " onchange="this.previousSibling.checked = true;">
+
+ checked onclick="var field = this.form['fields[' + this.value + '][field]']; if (!field.value) { field.value = 'id'; field.onchange(); }"> " onchange="this.previousSibling.checked = true;">
" : ""); ?>
";
- return ($label != "" ? "$return" . h($label) . " " : $return);
+ $return = " "
+ ;
+ return ($label != "" || $class ? "$return" . h($label) . " " : $return);
}
/** Generate list of HTML options
diff --git a/adminer/static/default.css b/adminer/static/default.css
index 6bb659aa..92501ea2 100644
--- a/adminer/static/default.css
+++ b/adminer/static/default.css
@@ -22,6 +22,7 @@ tbody tr:hover td, tbody tr:hover th { background: #eee; }
pre { margin: 1em 0 0; }
input[type=image] { vertical-align: middle; }
input.default { box-shadow: 1px 1px 1px rgba(0, 0, 0, .5); }
+.block { display: block; }
.version { color: #777; font-size: 67%; }
.js .hidden, .nojs .jsonly { display: none; }
.js .column { position: absolute; background: #ddf; padding: .3em 1ex .3em 0; margin-top: -.3em; }
diff --git a/adminer/static/editing.js b/adminer/static/editing.js
index d27236c9..61a97a04 100644
--- a/adminer/static/editing.js
+++ b/adminer/static/editing.js
@@ -416,7 +416,7 @@ function columnShow(checked, column) {
*/
function editingHideDefaults() {
if (innerWidth < document.documentElement.scrollWidth) {
- document.getElementById('defaults').checked = false;
+ document.getElementById('form')['defaults'].checked = false;
columnShow(false, 5);
}
}
diff --git a/adminer/user.inc.php b/adminer/user.inc.php
index ec4663b7..71e7cf6a 100644
--- a/adminer/user.inc.php
+++ b/adminer/user.inc.php
@@ -169,7 +169,7 @@ foreach (array(
} elseif (isset($_GET["grant"])) {
echo "" . lang('Grant') . " " . lang('Revoke') . " ";
} else {
- echo " "; //! uncheck all except grant if all is checked
+ echo " "; //! uncheck all except grant if all is checked
}
$i++;
}
diff --git a/changes.txt b/changes.txt
index 66762b9d..77f03026 100644
--- a/changes.txt
+++ b/changes.txt
@@ -1,4 +1,5 @@
Adminer 3.7.1-dev:
+Increase click target for checkboxes
Use shadow for highlighting default button
Adminer 3.7.0 (released 2013-05-19):