modifying name of livesearch variable

This commit is contained in:
kados 2006-06-10 19:52:20 +00:00
parent 803bd45b37
commit 818c324770
1 changed files with 4 additions and 4 deletions

View File

@ -118,11 +118,11 @@ function liveSearchDoSearch() {
if (typeof liveSearchParams == "undefined") {
liveSearchParams = "";
}
if (liveSearchLast != document.forms.searchform.value.value) {
if (liveSearchLast != document.forms.searchform.cql_query.value) {
if (liveSearchReq && liveSearchReq.readyState < 4) {
liveSearchReq.abort();
}
if ( document.forms.searchform.value.value == "") {
if ( document.forms.searchform.cql_query.value == "") {
liveSearchHide();
return false;
}
@ -132,8 +132,8 @@ function liveSearchDoSearch() {
liveSearchReq = new ActiveXObject("Microsoft.XMLHTTP");
}
liveSearchReq.onreadystatechange= liveSearchProcessReqChange;
liveSearchReq.open("GET", liveSearchRoot + "/cgi-bin/koha/livesearch.pl?value=" + document.forms.searchform.value.value + liveSearchParams);
liveSearchLast = document.forms.searchform.value.value;
liveSearchReq.open("GET", liveSearchRoot + "/cgi-bin/koha/livesearch.pl?cql_query=" + document.forms.searchform.cql_query.value + liveSearchParams);
liveSearchLast = document.forms.searchform.cql_query.value;
liveSearchReq.send(null);
}
}