/[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 527 by dpavlin, Tue Oct 19 16:15:13 2004 UTC revision 592 by dpavlin, Sat Nov 6 23:25:30 2004 UTC
# Line 25  Line 25 
25   Nashville, TN 37204   Nashville, TN 37204
26  */  */
27    
28    /*
29     Internet Explorer returns operation aborted if no debug div is present on
30     page, so we'll override default debug function from jsFind with dummy one.
31    */
32    function debug(foo) {
33            return;
34    }
35    
36  function go(f)  function go(f)
37  {  {
38          var form = document.getElementById('search');          var form = document.getElementById('search');
39          var query = null;          var query = null;
40          if (document.form.elements['query']) query = document.form.elements['query'].value;          if (form) query = form.elements['query'].value;
         var index_name = document.form.elements['index_name'].options[document.form.elements['index_name'].selectedIndex].value;  
41    
42          if(!query)          if(!query)
43          {          {
# Line 72  function printResults(result) Line 79  function printResults(result)
79          // Null result output          // Null result output
80          if(result.length < 1)          if(result.length < 1)
81          {          {
82                  if (status) status.innerHTML = "Nije pronađen niti jedan rezultat.";                  if (status) status.innerHTML = "Nije pronađen niti jedan rezultat. Pokušajte s upisom riječi u drugom rodu, broju i padežu (carina &ne; carine, carinska &ne; carinski &ne; carinskog).";
83    
84                  if(search_err != "")                  if(search_err != "")
85                  {                  {
# Line 97  function printResults(result) Line 104  function printResults(result)
104    
105                  var e = document.createElement("a");                  var e = document.createElement("a");
106                  e.setAttribute("href","hijerarhija.html?o="+result[i].link);                  e.setAttribute("href","hijerarhija.html?o="+result[i].link);
107                  var regex = new RegExp(/ *\* */);                  var regex = new RegExp(/ *#C# */);
108                  if (results[i].title.match(regex)) {                  if (results[i].title.match(regex)) {
109                          e.appendChild(self.document.createTextNode(results[i].title.replace(regex,' ')));                          e.appendChild(self.document.createTextNode(results[i].title.replace(regex,' ')));
110                          var pic = self.document.createElement("img");                          var pic = self.document.createElement("img");

Legend:
Removed from v.527  
changed lines
  Added in v.592

  ViewVC Help
Powered by ViewVC 1.1.26