diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php
index 8145f3fb..fef5e213 100644
--- a/adminer/include/editing.inc.php
+++ b/adminer/include/editing.inc.php
@@ -266,7 +266,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = arra
$field) {
$i++;
$orig = $field[($_POST ? "orig" : "field")];
@@ -280,10 +280,9 @@ function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = arra
| | " aria-labelledby="label-default">
-" : ""); ?>
-
-" aria-labelledby="label-default">" : "");
+ }
echo " | ";
echo (support("move_col") ?
" "
diff --git a/adminer/static/editing.js b/adminer/static/editing.js
index 1d79a702..6a172496 100644
--- a/adminer/static/editing.js
+++ b/adminer/static/editing.js
@@ -224,6 +224,16 @@ function editingClick(event) {
}
}
+/** Handle input on fields editing
+* @param InputEvent
+*/
+function editingInput(event) {
+ var el = getTarget(event);
+ if (/\[default\]$/.test(el.name)) {
+ el.previousSibling.checked = true;
+ }
+}
+
/** Detect foreign key
* @this HTMLInputElement
*/
|