From 820afbee0ba59ac3ca75452c13dafef92a343520 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 10 Jun 2007 18:13:03 +0200 Subject: [PATCH] bug 955: Do not call onsubmit for RESET. --- src/viewer/text/link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/viewer/text/link.c b/src/viewer/text/link.c index 5c823990..62b57840 100644 --- a/src/viewer/text/link.c +++ b/src/viewer/text/link.c @@ -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)) {