aboutsummaryrefslogtreecommitdiff
path: root/src/html.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2009-01-05 17:12:43 -0300
committerJorge Arellano Cid <jcid@dillo.org>2009-01-05 17:12:43 -0300
commitf7fc073ac0de5326cffee25fd3e94c4d0b385136 (patch)
treeec3b76e4436c6266369151308155705c822b66ea /src/html.cc
parent58e0045791b62f309066e446a314cd26bc277a8b (diff)
Added a right-click menu to the form submit button (allows to show hiddens)
Diffstat (limited to 'src/html.cc')
-rw-r--r--src/html.cc13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index 1c3652ba..77128927 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -258,6 +258,19 @@ void a_Html_form_reset(void *v_html, void *v_form)
}
/*
+ * Used by the "Show/Hide hiddens" form menuitem.
+ */
+void a_Html_form_display_hiddens(void *v_html, void *v_form, bool_t display)
+{
+ DilloHtml *html = (DilloHtml*)v_html;
+
+ if (Html_contains_form(html, v_form)) {
+ /* it's still valid */
+ a_Html_form_display_hiddens2(v_form, (display != 0));
+ }
+}
+
+/*
* Set the URL data for image maps.
*/
static void Html_set_link_coordinates(DilloHtml *html, int link, int x, int y)