Colspan should change to 3 when actions are hidden

This commit is contained in:
lorilee
2010-07-30 12:31:15 -07:00
parent 9877db1626
commit 8214c32340
2 changed files with 10 additions and 9 deletions

View File

@@ -1855,6 +1855,7 @@ $(document).ready(function() {
$("table[id='tablestructure'] td[class='unique']").remove(); $("table[id='tablestructure'] td[class='unique']").remove();
$("table[id='tablestructure'] td[class='index']").remove(); $("table[id='tablestructure'] td[class='index']").remove();
$("table[id='tablestructure'] td[class='fulltext']").remove(); $("table[id='tablestructure'] td[class='fulltext']").remove();
$("table[id='tablestructure'] th[class='action']").attr("colspan", 3);
// Display the "more" text // Display the "more" text
$("table[id='tablestructure'] td[class='more_opts']").show() $("table[id='tablestructure'] td[class='more_opts']").show()

View File

@@ -193,17 +193,17 @@ $i = 0;
<tr> <tr>
<th id="th<?php echo ++$i; ?>"></th> <th id="th<?php echo ++$i; ?>"></th>
<th id="th<?php echo ++$i; ?>">#</th> <th id="th<?php echo ++$i; ?>">#</th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Column'); ?></th> <th id="th<?php echo ++$i; ?>" class="column"><?php echo __('Column'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Type'); ?></th> <th id="th<?php echo ++$i; ?>" class="type"><?php echo __('Type'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Collation'); ?></th> <th id="th<?php echo ++$i; ?>" class="collation"><?php echo __('Collation'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Attributes'); ?></th> <th id="th<?php echo ++$i; ?>" class="attributes"><?php echo __('Attributes'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Null'); ?></th> <th id="th<?php echo ++$i; ?>" class="null"><?php echo __('Null'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Default'); ?></th> <th id="th<?php echo ++$i; ?>" class="default"><?php echo __('Default'); ?></th>
<th id="th<?php echo ++$i; ?>"><?php echo __('Extra'); ?></th> <th id="th<?php echo ++$i; ?>" class="extra"><?php echo __('Extra'); ?></th>
<?php if ($db_is_information_schema || $tbl_is_view) { ?> <?php if ($db_is_information_schema || $tbl_is_view) { ?>
<th id="th<?php echo ++$i; ?>"><?php echo __('View'); ?></th> <th id="th<?php echo ++$i; ?>" class="view"><?php echo __('View'); ?></th>
<?php } else { ?> <?php } else { ?>
<th colspan="7" id="th<?php echo ++$i; ?>"><?php echo __('Action'); ?></th> <th colspan="7" id="th<?php echo ++$i; ?>" class="action"><?php echo __('Action'); ?></th>
<?php } ?> <?php } ?>
</tr> </tr>
</thead> </thead>