X-Git-Url: https://fpunktk.de/gitweb/?p=consearch.git;a=blobdiff_plain;f=index.php;h=1f3311e3e98f49adf0e51e45bfc605f88a8af756;hp=e20e4a9e3f8b39044bcd0e6e4e3a635bec132bca;hb=7141ba5172b3f6438e481a174ea7d133700aee6e;hpb=121d1acd7bd5006fc21e79f286724739530aecd9 diff --git a/index.php b/index.php index e20e4a9..1f3311e 100644 --- a/index.php +++ b/index.php @@ -119,13 +119,13 @@ function display_searchbuttons() { for ( kw in se ) { document.getElementById("searchbuttons").innerHTML += ' \n"; } - document.getElementById("querystring").focus(); } function parse_fragmentstring() { var fragmentstring = document.URL.substr( document.URL.split("#")[0].length + 1 ); if ( fragmentstring == "" ) { display_searchbuttons(); + document.getElementById("querystring").focus(); } else { fragmentarr = fragmentstring.replace("%20", "+").split("+"); if ( se[fragmentarr[0]] ) {