/[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 1 by dpavlin, Sun Jul 11 20:18:25 2004 UTC revision 4 by dpavlin, Tue Jul 20 17:08:06 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;
37    
38    if(query == null || query == "")    if(query == null || query == "")
39    {    {
# Line 42  function go(f) Line 43  function go(f)
43    
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+"?search="+parsed_string;    var url=location.pathname+"?";
47      if (index) url += "index_name="+index_name+"&";
48      url += "search="+parsed_string;
49    location = url;    location = url;
50    
51    return false;    return false;

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

  ViewVC Help
Powered by ViewVC 1.1.26