From 63aa08c54e2a47578da278d39061b6eb6b39a901 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 1 Apr 2004 18:24:22 +0000 Subject: [PATCH] [project @ 2004-04-01 18:24:22 by jmb] Display form action URL when over submit button svn path=/import/netsurf/; revision=695 --- desktop/browser.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/desktop/browser.c b/desktop/browser.c index 00cf88129..e7b575100 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -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,