From 076a0a26343fedcbb6221abdf346b11e4175d6cc Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 6 Aug 2013 13:44:47 -0700 Subject: [PATCH] Check default value on key press --- adminer/include/editing.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/editing.inc.php b/adminer/include/editing.inc.php index 5d5a15c9..98aa143c 100644 --- a/adminer/include/editing.inc.php +++ b/adminer/include/editing.inc.php @@ -255,7 +255,7 @@ function edit_fields($fields, $collations, $type = "TABLE", $foreign_keys = arra " onchange="this.previousSibling.checked = true;"> +echo checkbox("fields[$i][has_default]", 1, $field["has_default"]); ?>" onkeyup="if (this.value != this.getAttribute('value')) { this.onchange(); this.setAttribute('value', this.value) }" onchange="this.previousSibling.checked = true;"> " : ""); ?>