commit 6244d4ddf18a577e70712d861c6bed42f5485f42
parent b84c49b04dbc574cef2fdcaa56240d9eb9e6b3d8
Author: ukai <ukai>
Date: Mon, 25 Feb 2002 15:40:03 +0000
[w3m-dev 03064] Re: SELECTED form value
* form.c (formResetBuffer): set inititial value
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat:
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-26 Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
+
+ * [w3m-dev 03064] Re: SELECTED form value
+ * form.c (formResetBuffer): set inititial value
+
2002-02-23 HIDAI Ken-ichi <hidai@nmn.jp>
* [w3m-dev 03060] doc-jp/README.migemo
diff --git a/form.c b/form.c
@@ -235,15 +235,22 @@ formResetBuffer(Buffer *buf, AnchorList *formitem)
case FORM_INPUT_FILE:
case FORM_TEXTAREA:
f1->value = f2->value;
+ f1->init_value = f2->init_value;
break;
case FORM_INPUT_CHECKBOX:
case FORM_INPUT_RADIO:
f1->checked = f2->checked;
+ f1->init_checked = f2->init_checked;
break;
case FORM_SELECT:
#ifdef MENU_SELECT
f1->select_option = f2->select_option;
+ f1->value = f2->value;
f1->label = f2->label;
+ f1->selected = f2->selected;
+ f1->init_value = f2->init_value;
+ f1->init_label = f2->init_label;
+ f1->init_selected = f2->init_selected;
#endif /* MENU_SELECT */
break;
default: