Author: andre
Date: 2010-02-24 11:40:00 +0100 (Wed, 24 Feb 2010)
New Revision: 41155

Modified:
   
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
Log:
ported some differences from 1.9


Modified: 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
===================================================================
--- 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
  2010-02-24 10:31:17 UTC (rev 41154)
+++ 
mmbase/trunk/applications/searchrelate/src/main/webapp/mmbase/searchrelate/Searcher.js.jsp
  2010-02-24 10:40:00 UTC (rev 41155)
@@ -313,7 +313,7 @@
             return alert('<fmt:message key="relatemax" />'.replace('{0}', 
this.current.searcher.maxNumber));
         }
         // Set up data
-        if (typeof(this.unrelated[number]) == "undefined") {
+        if (typeof(this.related[number]) == "undefined") {
             this.related[number] = tr;
         }
 
@@ -367,7 +367,7 @@
     this.logger.debug("+ relations: " + relationTrs.length);
 
     // Set up data
-    if (typeof(this.related[number]) == "undefined") {
+    if (typeof(this.unrelated[number]) == "undefined") {
         this.unrelated[number] = tr;
     }
     this.related[number] = null;
@@ -647,12 +647,11 @@
         $(rep).empty();
         this.logger.debug("reusing " + offset);
         this.logger.debug(rep);
-        var self = this;
         $(rep).append($(result).find("> *"));
         this.addNewlyRelated(rep);
-        self.deleteNewlyRemoved(rep);
+        this.deleteNewlyRemoved(rep);
         this.bindEvents(rep);
-        $(self.relater.div).trigger("mmsrPaged", [status, self.relater, self, 
anchor]);
+        $(this.relater.div).trigger("mmsrPaged", [status, this.relater, this, 
anchor]);
     }
     return false;
 }

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to