insert another new row: dropdown choice should be sticky
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-07-25 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* tbl_change.php: insert another new row: dropdown choice should be sticky
|
||||||
|
|
||||||
2005-07-24 Michal Čihař <michal@cihar.com>
|
2005-07-24 Michal Čihař <michal@cihar.com>
|
||||||
* libraries/check_user_privileges.lib.php: Undefined variable (bug
|
* libraries/check_user_privileges.lib.php: Undefined variable (bug
|
||||||
#1243885).
|
#1243885).
|
||||||
|
@@ -864,15 +864,14 @@ if (isset($primary_key)) {
|
|||||||
<?php
|
<?php
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
// Defines whether "insert a new row after the current insert" should be
|
// Defines whether "insert another new row" should be
|
||||||
// checked or not (keep this choice sticky)
|
// selected or not (keep this choice sticky)
|
||||||
// but do not check both radios, because Netscape 4.8 would display both checked
|
|
||||||
if (!empty($disp_message)) {
|
if (!empty($disp_message)) {
|
||||||
$checked_after_insert_new_insert = ' checked="checked"';
|
$selected_after_insert_new_insert = ' selected="selected"';
|
||||||
$checked_after_insert_back = '';
|
$selected_after_insert_back = '';
|
||||||
} else {
|
} else {
|
||||||
$checked_after_insert_back = ' checked="checked"';
|
$selected_after_insert_back = ' selected="selected"';
|
||||||
$checked_after_insert_new_insert = '';
|
$selected_after_insert_new_insert = '';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
@@ -881,8 +880,8 @@ if (!empty($disp_message)) {
|
|||||||
</td>
|
</td>
|
||||||
<td valign="middle" nowrap="nowrap">
|
<td valign="middle" nowrap="nowrap">
|
||||||
<select name="after_insert">
|
<select name="after_insert">
|
||||||
<option value="back" ><?php echo $strAfterInsertBack; ?></option>
|
<option value="back" <?php echo $selected_after_insert_back; ?>><?php echo $strAfterInsertBack; ?></option>
|
||||||
<option value="new_insert"><?php echo $strAfterInsertNewInsert; ?></option>
|
<option value="new_insert" <?php echo $selected_after_insert_new_insert; ?>><?php echo $strAfterInsertNewInsert; ?></option>
|
||||||
<?php
|
<?php
|
||||||
if (isset($primary_key))
|
if (isset($primary_key))
|
||||||
{?>
|
{?>
|
||||||
|
Reference in New Issue
Block a user