Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv7164
Modified Files:
Searcher.js.jsp
Log Message:
should only change class of the current input.search
See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates
Index: Searcher.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/Searcher.js.jsp,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -b -r1.51 -r1.52
--- Searcher.js.jsp 11 Nov 2008 19:06:40 -0000 1.51
+++ Searcher.js.jsp 25 Nov 2008 19:39:51 -0000 1.52
@@ -7,10 +7,11 @@
* Generic mmbase search & relate tool. Javascript part.
*
*
- * Usage: It is sufficient to use the mm:relate tag. This tag wil know wether
this javascript is already loaded, and if not, will arrange for that. It is
required to load jquery, though.
-
+ * Usage: It is sufficient to use the mm:relate tag. This tag wil know whether
this javascript is
+ * already loaded, and if not, will arrange for that. It is required to load
jquery, though.
+ *
* On ready, the necessary javascript will then be connected to .mm_related
a.search
-
+ *
* Custom events
* - mmsrRelate (use $("div.mm_related").bind("mmsrRelate",
function (e, tr, relater) ) )
* - mmsrUnrelate (use $("div.mm_related").bind("mmsrUnrelate",
function (e, tr, relater) ) )
@@ -18,7 +19,7 @@
* - mmsrCommitted (use $("div.mm_related").bind("mmsrCommitted",
function (e, submitter, status, relater) ) )
*
* @author Michiel Meeuwissen
- * @version $Id: Searcher.js.jsp,v 1.51 2008/11/11 19:06:40 andre Exp $
+ * @version $Id: Searcher.js.jsp,v 1.52 2008/11/25 19:39:51 andre Exp $
*/
@@ -560,7 +561,7 @@
var self = this;
$.ajax({ url: this.searchUrl, type: "GET", dataType: "xml", data:
params,
beforeSend: function() {
- $("input.search").addClass("searching");
+ $(self.div).find("input.search").addClass("searching");
$(rep).append($('<p><fmt:message key="searching" /></p>'));
},
complete: function(res, status) {
@@ -568,7 +569,7 @@
result = res.responseText;
$(rep).empty();
$(rep).attr("class", $(result).attr("class"));
- $("input.search").removeClass("searching");
+
$(self.div).find("input.search").removeClass("searching");
//console.log($(result).find("*").length);
$(rep).append($(result).find("> *"));
self.searchResults["" + offset] = result;
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs