1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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 Kalle Olavi Niemitalo
parent a5574ce37e
commit 429e08e073

View File

@ -912,7 +912,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)) {