mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
bug 955: Do not call onsubmit for RESET.
This commit is contained in:
parent
908499bb9e
commit
820afbee0b
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user