/[jsFind]/trunk/html/js/usage.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/html/js/usage.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Tue Jul 20 17:08:06 2004 UTC revision 6 by dpavlin, Tue Jul 20 17:59:47 2004 UTC
# Line 33  function go(f) Line 33  function go(f)
33    }    }
34    
35    var query=document.search.query.value;    var query=document.search.query.value;
36    var index_name=document.search.index.value;    var index_name=document.search.index_name.value;
37    
38    if(query == null || query == "")    if(query == null || query == "")
39    {    {
# Line 44  function go(f) Line 44  function go(f)
44    var parsed_string = query.replace(/\s/gi,"+");    var parsed_string = query.replace(/\s/gi,"+");
45    //var url=location.host+location.pathname+"?search="+parsed_string;    //var url=location.host+location.pathname+"?search="+parsed_string;
46    var url=location.pathname+"?";    var url=location.pathname+"?";
47    if (index) url += "index_name="+index_name+"&";    if (index_name) url += "index_name="+index_name+"&";
48    url += "search="+parsed_string;    url += "query="+parsed_string;
49    location = url;    location = url;
50    
51    return false;    return false;

Legend:
Removed from v.4  
changed lines
  Added in v.6

  ViewVC Help
Powered by ViewVC 1.1.26