diff options
Diffstat (limited to 'html.c')
-rw-r--r-- | html.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/html.c b/html.c index aebb104..321d731 100644 --- a/html.c +++ b/html.c @@ -138,6 +138,8 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) { KATTR_ACTION, Pages[Search], KATTR__MAX ) + || htmlHidden(html, req, Network) + || htmlHidden(html, req, Context) || khtml_attr( html, KELEM_INPUT, KATTR_TYPE, "search", @@ -145,8 +147,6 @@ enum kcgi_err htmlNav(struct khtmlreq *html, struct kreq *req) { KATTR_VALUE, (query ? query : ""), KATTR__MAX ) - || htmlHidden(html, req, Network) - || htmlHidden(html, req, Context) || khtml_elem(html, KELEM_BUTTON) || khtml_printf( html, "Search %s", @@ -312,8 +312,8 @@ eventNetwork(struct khtmlreq *html, struct kreq *req, struct Event *event) { } char *href = khttp_urlpart( NULL, NULL, Pages[Search], - Keys[Query].name, req->fieldmap[Query]->parsed.s, Keys[Network].name, event->network, + Keys[Query].name, req->fieldmap[Query]->parsed.s, NULL ); if (!href) err(EX_OSERR, "khttp_urlpart"); @@ -337,9 +337,9 @@ eventContext(struct khtmlreq *html, struct kreq *req, struct Event *event) { } char *href = khttp_urlpart( NULL, NULL, Pages[Search], - Keys[Query].name, req->fieldmap[Query]->parsed.s, Keys[Network].name, event->network, Keys[Context].name, event->context, + Keys[Query].name, req->fieldmap[Query]->parsed.s, NULL ); if (!href) err(EX_OSERR, "khttp_urlpart"); |