]> git.joonet.de Git - adminer.git/commitdiff
Comment
authorJakub Vrana <jakub@vrana.cz>
Tue, 20 Feb 2018 23:28:59 +0000 (00:28 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 20 Feb 2018 23:28:59 +0000 (00:28 +0100)
adminer/drivers/mysql.inc.php
adminer/include/editing.inc.php

index 31010ab2a8da9e94196261cc1319dcfe43ed6e0f..12948b8f3ff58516794556f07241e0f5af078f82 100644 (file)
@@ -1105,7 +1105,7 @@ if (!defined("DRIVER")) {
        $grouping = array("avg", "count", "count distinct", "group_concat", "max", "min", "sum"); ///< @var array grouping functions used in select
        $edit_functions = array( ///< @var array of array("$type|$type2" => "$function/$function2") functions used in editing, [0] - edit and insert, [1] - edit only
                array(
-                       "char" => "md5/sha1/password/encrypt/uuid", //! JavaScript for disabling maxlength
+                       "char" => "md5/sha1/password/encrypt/uuid",
                        "binary" => "md5/sha1",
                        "date|time" => "now",
                ), array(
index 5875d77cad6460090cd9685cdcfb0950634d03a0..69f02df5f264dc1da514b436844b3984e11c2ac7 100644 (file)
@@ -154,7 +154,7 @@ echo optionlist(array_merge($extra_types, $structured_types), $type);
 ?></select>
 <?php echo on_help("getTarget(event).value", 1); ?>
 <?php echo script("mixin(qsl('select'), {onfocus: function () { lastType = selectValue(this); }, onchange: editingTypeChange});", ""); ?>
-<td><input name="<?php echo h($key); ?>[length]" value="<?php echo h($field["length"]); ?>" size="3"<?php echo (!$field["length"] && preg_match('~var(char|binary)$~', $type) ? " class='required'" : ""); ?> aria-labelledby="label-length"><?php echo script("mixin(qsl('input'), {onfocus: editingLengthFocus, oninput: editingLengthChange});", ""); ?><td class="options"><?php //! type="number" with enabled JavaScript
+<td><input name="<?php echo h($key); ?>[length]" value="<?php echo h($field["length"]); ?>" size="3"<?php echo (!$field["length"] && preg_match('~var(char|binary)$~', $type) ? " class='required'" : ""); //! type="number" with enabled JavaScript ?> aria-labelledby="label-length"><?php echo script("mixin(qsl('input'), {onfocus: editingLengthFocus, oninput: editingLengthChange});", ""); ?><td class="options"><?php
        echo "<select name='" . h($key) . "[collation]'" . (preg_match('~(char|text|enum|set)$~', $type) ? "" : " class='hidden'") . '><option value="">(' . lang('collation') . ')' . optionlist($collations, $field["collation"]) . '</select>';
        echo ($unsigned ? "<select name='" . h($key) . "[unsigned]'" . (!$type || preg_match(number_type(), $type) ? "" : " class='hidden'") . '><option>' . optionlist($unsigned, $field["unsigned"]) . '</select>' : '');
        echo (isset($field['on_update']) ? "<select name='" . h($key) . "[on_update]'" . (preg_match('~timestamp|datetime~', $type) ? "" : " class='hidden'") . '>' . optionlist(array("" => "(" . lang('ON UPDATE') . ")", "CURRENT_TIMESTAMP"), $field["on_update"]) . '</select>' : '');