aboutsummaryrefslogtreecommitdiff
path: root/src/Haddock/Backends
diff options
context:
space:
mode:
Diffstat (limited to 'src/Haddock/Backends')
-rw-r--r--src/Haddock/Backends/Html.hs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs
index a57236dc..4a8c41d8 100644
--- a/src/Haddock/Backends/Html.hs
+++ b/src/Haddock/Backends/Html.hs
@@ -448,10 +448,12 @@ ppHtmlIndex odir doctitle maybe_package maybe_html_help_format
search_box = tda [colspan 2, thestyle "padding-top:5px;"] << search
where
search :: Html
- search = "Search: " +++ input ! [identifier "searchbox", strAttr "onkeyup" "quick_search()"]
- +++ " " +++ input ! [value "Search", thetype "button", onclick "full_search()"]
- +++ " " +++ thespan ! [identifier "searchmsg"] << " "
-
+ search = form ! [strAttr "onsubmit" "full_search(); return false;", action ""] << (
+ "Search: "
+ +++ input ! [identifier "searchbox", strAttr "onkeyup" "quick_search()"]
+ +++ " " +++ input ! [value "Search", thetype "submit"]
+ +++ " " +++ thespan ! [identifier "searchmsg"] << " ")
+
index_html = td << setTrClass (table ! [identifier "indexlist", cellpadding 0, cellspacing 5] <<
aboves (map indexElt index))