Author: michiel Date: 2009-12-01 11:06:33 +0100 (Tue, 01 Dec 2009) New Revision: 40059
Modified: mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp Log: anticipate searchers too Modified: mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp =================================================================== --- mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp 2009-12-01 09:50:58 UTC (rev 40058) +++ mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/List.js.jsp 2009-12-01 10:06:33 UTC (rev 40059) @@ -27,7 +27,7 @@ $(document).ready(function() { - List.prototype.init(document); + List.prototype.init(document, false); }); @@ -193,7 +193,17 @@ /** * Initializes every div.list in the given element to be a List */ -List.prototype.init = function(el) { +List.prototype.init = function(el, initSearchers) { + if (typeof initSearchers == "undefined" || initSearchers) { + if (typeof MMBaseRelater == "function") { + $(el).find("div.mm_related").each(function() { + if (this.relater == null) { + this.relater = new MMBaseRelater(this); + } + }); + } + } + var l = List; // hoping to make IE a bit faster $(el).find("div.list").each(function() { if (this.list == null) { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs