Netscape 4.8 bug if both radios are checked
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2003-08-13 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* tbl_change.php3: do not check both radios (confuses Netscape 4.8)
|
||||
|
||||
2003-08-13 Michal Cihar <nijel@users.sourceforge.net>
|
||||
* tbl_addfield.php3: Highlight correct tab after changing structure.
|
||||
|
||||
|
@@ -735,16 +735,23 @@ echo "\n";
|
||||
|
||||
// Defines whether "insert a new row after the current insert" should be
|
||||
// checked or not (keep this choice sticky)
|
||||
$checked = !empty($disp_message) ? ' checked="checked"' : '';
|
||||
// but do not check both radios, because Netscape 4.8 would display both checked
|
||||
if (!empty($disp_message)) {
|
||||
$checked_after_insert_new_insert = ' checked="checked"';
|
||||
$checked_after_insert_back = '';
|
||||
} else {
|
||||
$checked_after_insert_back = ' checked="checked"';
|
||||
$checked_after_insert_new_insert = '';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td valign="middle">
|
||||
<b>-- <?php echo $strAnd; ?> --</b>
|
||||
</td>
|
||||
<td valign="middle" nowrap="nowrap">
|
||||
<input type="radio" name="after_insert" value="back" id="radio_after_insert_back" checked="checked" tabindex="<?php echo ((3 * $fields_cnt) + 3); ?>" /><label for="radio_after_insert_back"><?php echo $strAfterInsertBack; ?></label><br />
|
||||
<input type="radio" name="after_insert" value="back" id="radio_after_insert_back" <?php echo $checked_after_insert_back; ?> tabindex="<?php echo ((3 * $fields_cnt) + 3); ?>" /><label for="radio_after_insert_back"><?php echo $strAfterInsertBack; ?></label><br />
|
||||
<?php echo $strOr; ?><br />
|
||||
<input type="radio" name="after_insert" value="new_insert" id="radio_after_insert_new_insert"<?php echo $checked; ?> tabindex="<?php echo ((3 * $fields_cnt) + 4); ?>" /><label for="radio_after_insert_new_insert"><?php echo $strAfterInsertNewInsert; ?></label>
|
||||
<input type="radio" name="after_insert" value="new_insert" id="radio_after_insert_new_insert"<?php echo $checked_after_insert_new_insert; ?> tabindex="<?php echo ((3 * $fields_cnt) + 4); ?>" /><label for="radio_after_insert_new_insert"><?php echo $strAfterInsertNewInsert; ?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
Reference in New Issue
Block a user