1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-10-11 05:29:28 -04:00

bug 955: Do not call onsubmit for RESET.

This commit is contained in:
Witold Filipczyk 2007-06-10 18:13:03 +02:00 committed by Witold Filipczyk
parent 908499bb9e
commit 820afbee0b

View File

@ -917,7 +917,7 @@ call_onsubmit_and_submit(struct session *ses, struct document_view *doc_view,
* explicitly tell the ECMAScript code which of them was
* pressed. W3C DOM Level 3 doesn't seem to include such a
* feature. */
if (fc->form->onsubmit) {
if (fc->type != FC_RESET && fc->form->onsubmit) {
struct string code;
if (init_string(&code)) {