[Koha-cvs] koha/koha-tmpl/opac-tmpl/npl/en/includes livese... [dev_week]

Joshua Ferraro jmf at kados.org
Sat Jun 10 21:52:20 CEST 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		dev_week
Changes by:	Joshua Ferraro <kados>	06/06/10 19:52:20

Modified files:
	koha-tmpl/opac-tmpl/npl/en/includes: livesearch.js 

Log message:
	modifying name of livesearch variable

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha-tmpl/opac-tmpl/npl/en/includes/livesearch.js?cvsroot=koha&only_with_tag=dev_week&r1=1.1.2.1&r2=1.1.2.2

Patches:
Index: livesearch.js
===================================================================
RCS file: /sources/koha/koha/koha-tmpl/opac-tmpl/npl/en/includes/Attic/livesearch.js,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- livesearch.js	10 Jun 2006 15:50:53 -0000	1.1.2.1
+++ livesearch.js	10 Jun 2006 19:52:20 -0000	1.1.2.2
@@ -118,11 +118,11 @@
 	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 @@
 		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);
 	}
 }





More information about the Koha-cvs mailing list