Avoid hiding column only to show it later
This commit is contained in:
parent
07d1bc4291
commit
557b8b178e
|
@ -187,7 +187,7 @@ edit_fields($row["fields"], $collations, "TABLE", $foreign_keys, $comments);
|
||||||
<p>
|
<p>
|
||||||
<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
|
<?php echo lang('Auto Increment'); ?>: <input type="number" name="Auto_increment" size="6" value="<?php echo h($row["Auto_increment"]); ?>">
|
||||||
<?php echo checkbox("defaults", 1, !$_POST || $_POST["defaults"], lang('Default values'), "columnShow(this.checked, 5)", "jsonly"); ?>
|
<?php echo checkbox("defaults", 1, !$_POST || $_POST["defaults"], lang('Default values'), "columnShow(this.checked, 5)", "jsonly"); ?>
|
||||||
<?php if (!$_POST) { echo script("editingHideDefaults();"); } ?>
|
<?php echo ($_POST ? "" : script("editingHideDefaults();")); ?>
|
||||||
<?php echo (support("comment")
|
<?php echo (support("comment")
|
||||||
? "<label><input type='checkbox' name='comments' value='1' class='jsonly'" . ($comments ? " checked" : "") . ">" . lang('Comment') . "</label>"
|
? "<label><input type='checkbox' name='comments' value='1' class='jsonly'" . ($comments ? " checked" : "") . ">" . lang('Comment') . "</label>"
|
||||||
. script("qsl('input').onclick = partial(editingCommentsClick, true);")
|
. script("qsl('input').onclick = partial(editingCommentsClick, true);")
|
||||||
|
|
|
@ -385,7 +385,6 @@ function columnShow(checked, column) {
|
||||||
function editingHideDefaults() {
|
function editingHideDefaults() {
|
||||||
if (innerWidth < document.documentElement.scrollWidth) {
|
if (innerWidth < document.documentElement.scrollWidth) {
|
||||||
qs('#form')['defaults'].checked = false;
|
qs('#form')['defaults'].checked = false;
|
||||||
columnShow(false, 5);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue