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

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

revision 494 by dpavlin, Sun Oct 10 05:55:17 2004 UTC revision 499 by dpavlin, Sun Oct 10 09:33:57 2004 UTC
# Line 119  function printResults(result) Line 119  function printResults(result)
119      var e = document.createElement("font");      var e = document.createElement("font");
120    
121      e = document.createElement("a");      e = document.createElement("a");
122      e.setAttribute("href","hijerarhija.html?o="+result[i].link+"#mfn"+result[i].link);      e.setAttribute("href","hijerarhija.html?o="+result[i].link);
123      e.appendChild(document.createTextNode(result[i].title));      e.appendChild(document.createTextNode(result[i].title));
124      d.appendChild(e);      d.appendChild(e);
125      d.appendChild(document.createTextNode(" "));      d.appendChild(document.createTextNode(" "));
# Line 152  function printResults(result) Line 152  function printResults(result)
152  // override default sort by frequency and sort by headline  // override default sort by frequency and sort by headline
153  function sortResults_title(a, b)  function sortResults_title(a, b)
154  {  {
155    return a.title == b.title ? 0 : ( a.title > b.title ? -1 : 1);    return a.title.toLowerCase() == b.title.toLowerCase() ? 0 : ( a.title.toLowerCase() > b.title.toLowerCase() ? -1 : 1);
156  }  }

Legend:
Removed from v.494  
changed lines
  Added in v.499

  ViewVC Help
Powered by ViewVC 1.1.26