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 |
{ |
{ |
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 ≠ carine, carinska ≠ carinski ≠ carinskog)."; |
83 |
|
|
84 |
if(search_err != "") |
if(search_err != "") |
85 |
{ |
{ |
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"); |