1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Pressing button caused not only onclick action, but also

"goto current page". See test/ecmascript/onclick.html.
Tell me if this breaks something
This commit is contained in:
Witold Filipczyk 2006-04-30 17:02:48 +02:00 committed by Witold Filipczyk
parent a558fe67b9
commit 79a6fc1905

View File

@ -998,12 +998,12 @@ activate_link(struct session *ses, struct document_view *doc_view,
case LINK_MAP:
case LINK_FIELD:
case LINK_AREA:
case LINK_BUTTON:
if (goto_current_link(ses, doc_view, do_reload))
return FRAME_EVENT_OK;
break;
case LINK_BUTTON:
break;
case LINK_CHECKBOX:
link_fc = get_link_form_control(link);