Changeset 437


Ignore:
Timestamp:
07/13/06 12:56:48 (13 years ago)
Author:
szabolcs
Message:

closes #497 spent 6h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/global_searchbox.pt

    r236 r437  
    66<!-- THE SEARCHBOX DEFINITION --> 
    77<div id="tb-portal-searchbox" metal:define-macro="quick_search"> 
     8    <script language="JavaScript"> 
     9        function search_redirect () { 
     10            if (document.searchform.SearchableText.value == "") { 
     11                document.searchform.action = "lemill_search_form"; 
     12                document.searchform.submit(); 
     13            } else 
     14                document.searchform.submit(); 
     15        } 
     16    </script> 
     17 
    818    <form name="searchform" 
    919          action="search" 
     
    3040                   class="searchbox" /> 
    3141                    
    32         <button type="submit" class="searchbutton"><img src="search.png" class="smallicon" alt="Search" /></button> 
     42        <button class="searchbutton" onclick="search_redirect();"><img src="search.png" class="smallicon" alt="Search" /></button> 
    3343 
    3444        <div class="LSResult" id="LSResult" style=""><div class="LSShadow" id="LSShadow"></div></div> 
Note: See TracChangeset for help on using the changeset viewer.