[pmwiki-users] Clicking Go on search searches for the word Search

Hans design5 at softflow.co.uk
Mon Mar 10 13:07:40 CDT 2008


Monday, March 10, 2008, 5:51:10 PM, wiki question wrote:

>   When I change the following line in skin-fixflow.tmpl
>   <!--markup:(:searchbox  label=$[Go] value=$[Search] focus=true:)-->

>   to 
>    
>     <!--markup:(:searchbox  label=$[Go] value=$[Search] )-->

>   It stops replacing my search value with the word "Search"  when I click "Go"
>   but I have to delete the word search when performing a seach --
> which makes sense based upon your explanation.

The issue is with the focus setting. Try instead of your change above
this:

change in searchbox2.php this:

 if ($focus) $out .= "
    onfocus=\"preval=this.value; this.value=''\" onblur=\"this.value=preval\" ";

to  this:

 if ($focus) $out .= "
    onfocus=\"preval=this.value; this.value=''\"  ";


(removing onblur=\"this.value=preval\")

I think this is a bug in FixFlow.  I removed it for the Triad skin,
but must have forgotten to remove it for FixFlow.

  ~Hans




More information about the pmwiki-users mailing list