[dokuwiki] Re: Size of quick search box

  • From: Andreas Gohr <andi@xxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sun, 9 Jan 2011 11:13:21 +0100

> If I increase the size of the quick search box (since that is what I want
> in my theme):
> It doesn't really make a difference until I do this too:
>
> +          $name = shorten(noNS($id), ' ('.$ns.')',75);
>
> Is there a more generic way to do this?
>
> The only way that I could think of was to add something to lib/scripts/ajax.js
> to pass back the width of the window, and use that to determine the number of
> chars to limit things to.

Hmm this sounds like a nice idea. Since the quicksearch works with
JavaScript only anyway, why not use it to determine the width and send
it to the backend together with the request? Could you create a patch
for this?

Andi

-- 
splitbrain.org
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: