From c7954b8ecdc9323a411719421cf757423f368ebe Mon Sep 17 00:00:00 2001 From: Fumitoshi UKAI Date: Mon, 25 Feb 2002 15:40:03 +0000 Subject: [w3m-dev 03064] Re: SELECTED form value * form.c (formResetBuffer): set inititial value From: Hironori Sakamoto --- ChangeLog | 7 ++++++- form.c | 9 ++++++++- 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 + + * [w3m-dev 03064] Re: SELECTED form value + * form.c (formResetBuffer): set inititial value + 2002-02-23 HIDAI Ken-ichi * [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: -- cgit v1.2.3