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:
parent
a5574ce37e
commit
429e08e073
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user