Update of /var/cvs/contributions/didactor2/src/core/templates/core/js
In directory james.mmbase.org:/tmp/cvs-serv5967

Modified Files:
        Didactor.js 
Added Files:
        jquery.query.js 
Log Message:



See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/core/templates/core/js


jquery.query.js is new



Index: Didactor.js
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/templates/core/js/Didactor.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- Didactor.js 28 Aug 2008 14:39:59 -0000      1.1
+++ Didactor.js 28 Aug 2008 15:11:24 -0000      1.2
@@ -9,7 +9,9 @@
        self.reportOnline();
        timer.reset(self.getSetting("Didactor-PageReporter") == "true" ? 5000 : 
1000 * 60 * 2);
     });
-    this.content = null;
+    this.content = $.query.get("learnobject");
+    $.query.REMOVE("learnobject");
+
 }
 
 Didactor.prototype.getSetting = function(name) {
@@ -17,10 +19,15 @@
 }
 
 Didactor.prototype.reportOnline = function (timer) {
+    console.log(window.location);
+
     var params;
     var thisCheck = new Date();
     if (this.getSetting("Didactor-PageReporter") == "true") {
-       params = {content: this.content, page: this.url, add: 
thisCheck.getTime() - this.lastCheck.getTime()};
+       params = {page: this.url + $.query.toString(), add: thisCheck.getTime() 
- this.lastCheck.getTime()};
+       if (this.content != null) {
+           params.content = this.content;
+       }
     } else {
        params = {};
     }
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to