[project @ 2004-04-01 18:24:22 by jmb]

Display form action URL when over submit button

svn path=/import/netsurf/; revision=695
This commit is contained in:
John Mark Bell 2004-04-01 18:24:22 +00:00
parent cda80645f2
commit 63aa08c54e

View File

@ -1419,6 +1419,17 @@ void browser_window_follow_link(struct browser_window *bw,
done = 1;
break;
}
else if (click_boxes[i].box->gadget->type == GADGET_SUBMIT) {
char *url, *href;
href = click_boxes[i].box->gadget->form->action;
if (!href) continue;
url = url_join(href, bw->current_content->data.html.base_url);
if (!url) continue;
browser_window_set_status(bw, url);
free(url);
done = 1;
break;
}
}
if (click_type == 0 && click_boxes[i].box->title != NULL) {
browser_window_set_status(bw,