/[webpac]/trunk2/out/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 /trunk2/out/js/usage.js

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

revision 450 by dpavlin, Thu Jul 22 19:07:16 2004 UTC revision 451 by dpavlin, Wed Sep 15 21:15:50 2004 UTC
# Line 58  function findDivHelper(n, id) Line 58  function findDivHelper(n, id)
58    {    {
59      if((m.nodeType == 1) &&      if((m.nodeType == 1) &&
60         (m.tagName.toLowerCase() == "div") &&         (m.tagName.toLowerCase() == "div") &&
61           m.getAttribute("id") &&
62         (m.getAttribute("id").toLowerCase() == id.toLowerCase() ))         (m.getAttribute("id").toLowerCase() == id.toLowerCase() ))
63      {      {
64        return m;        return m;
# Line 85  function printResults(result) Line 86  function printResults(result)
86    debug("printResults("+result.length+")");    debug("printResults("+result.length+")");
87    
88    var d = findDiv("results");    var d = findDiv("results");
89      var header;
90    
91    // Null result output    // Null result output
92    if(result.length < 1)    if(result.length < 1)
93    {    {
94      var header = (d.getElementsByTagName("h2"))[0].firstChild;      header = (d.getElementsByTagName("h2"))[0].firstChild;
95      header.replaceData(0, 14, "Nothing Found ");      header.replaceData(0, 14, "Nothing Found ");
96    
97      if(search_err != "")      if(search_err != "")
# Line 126  function printResults(result) Line 128  function printResults(result)
128    }    }
129    
130    // Change header    // Change header
131    var header = (d.getElementsByTagName("h2"))[0].firstChild;    header = (d.getElementsByTagName("h2"))[0].firstChild;
132    
133    header.replaceData(0, 14, "Search Results");    header.replaceData(0, 14, "Search Results");
134    

Legend:
Removed from v.450  
changed lines
  Added in v.451

  ViewVC Help
Powered by ViewVC 1.1.26