diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-25 15:40:03 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-02-25 15:40:03 +0000 |
commit | c7954b8ecdc9323a411719421cf757423f368ebe (patch) | |
tree | 64cf5bd2e985ac73047ea5c73feee1e47a5d4eb8 /form.c | |
parent | [w3m-dev 03060] doc-jp/README.migemo (diff) | |
download | w3m-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-- | form.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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: |