bug #1205940, current timestamp checkbox when field type changes

This commit is contained in:
Marc Delisle
2005-05-27 17:04:50 +00:00
parent 1f2733989b
commit 93d3cc5579
2 changed files with 8 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2005-05-27 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties.inc.php: bug #1205940, current timestamp checkbox
when field type changes
2005-05-26 Marc Delisle <lem9@users.sourceforge.net>
* tbl_create.php: bug #1207406, undefined index from PMA_setComment()
* sql.php: bug #1204913, left frame update on manual table rename

View File

@@ -23,7 +23,8 @@ document.onkeydown = onKeyDownArrowsHandler;
</script>
<?php }
// here, the div_x_7 represents a div id which contains
// the default current timestamp checkbox and label
// the default CURRENT TIMESTAMP checkbox and label
// and, field_x_7a represents the checkbox itself
if (PMA_MYSQL_INT_VERSION >= 40102) { ?>
<script type="text/javascript" language="javascript">
@@ -33,6 +34,7 @@ function display_field_options(field_type, i) {
getElement('div_' + i + '_7').style.display = 'block';
} else {
getElement('div_' + i + '_7').style.display = 'none';
getElement('field_' + i + '_7a').checked = false;
}
return true;
}
@@ -424,6 +426,7 @@ for ($i = 0 ; $i < $num_fields; $i++) {
$tmp_display_type = 'block';
} else {
$tmp_display_type = 'none';
$default_current_timestamp = FALSE;
}
$content_cells[$i][$ci] .= '<br /><div id="div_' . $i . '_' . ($ci - $ci_offset) . '" style="white-space: nowrap; display: ' . $tmp_display_type . '"><input id="field_' . $i . '_' . ($ci - $ci_offset) . 'a" type="checkbox" name="field_default_current_timestamp[' . $i . ']"';
if ($default_current_timestamp) {