aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-02-25 15:40:03 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-02-25 15:40:03 +0000
commitc7954b8ecdc9323a411719421cf757423f368ebe (patch)
tree64cf5bd2e985ac73047ea5c73feee1e47a5d4eb8
parent[w3m-dev 03060] doc-jp/README.migemo (diff)
downloadw3m-c7954b8ecdc9323a411719421cf757423f368ebe.tar.gz
w3m-c7954b8ecdc9323a411719421cf757423f368ebe.zip
[w3m-dev 03064] Re: SELECTED form value
* form.c (formResetBuffer): set inititial value From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog7
-rw-r--r--form.c9
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5b531ad..e2d639c 100644
--- 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
@@ -2986,4 +2991,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.323 2002/02/22 17:59:51 ukai Exp $
+$Id: ChangeLog,v 1.324 2002/02/25 15:40:03 ukai Exp $
diff --git a/form.c b/form.c
index 623e928..9f871d0 100644
--- a/form.c
+++ b/form.c
@@ -1,4 +1,4 @@
-/* $Id: form.c,v 1.12 2002/02/04 15:18:42 ukai Exp $ */
+/* $Id: form.c,v 1.13 2002/02/25 15:40:04 ukai Exp $ */
/*
* HTML forms
*/
@@ -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: