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

Modified Files:
        Didactor.js 
Log Message:
set content to sub learnblocks too


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


Index: Didactor.js
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/core/templates/core/js/Didactor.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- Didactor.js 10 Nov 2008 14:51:11 -0000      1.13
+++ Didactor.js 10 Nov 2008 16:26:39 -0000      1.14
@@ -6,7 +6,7 @@
  * One global variable 'didactor' is automaticly created, which can be be 
referenced (as long as the di:head tag is used).
  * @since Didactor 2.3.0
  * @author Michiel Meeuwissen
- * @version $Id: Didactor.js,v 1.13 2008/11/10 14:51:11 michiel Exp $
+ * @version $Id: Didactor.js,v 1.14 2008/11/10 16:26:39 michiel Exp $
  */
 
 
@@ -44,6 +44,7 @@
     }
     this.q = $.query.toString();
 
+
     for (var i = 0; i < Didactor.welcomeFiles.length; i++) {
            var welcomeFile = Didactor.welcomeFiles[i];
            this.url = this.url.replace(new RegExp(welcomeFile + "$"), "");
@@ -154,11 +155,12 @@
 $(document).ready(function() {
     didactor = new Didactor();
     var self = this;
-    $(document).bind("didactorContentLoaded",  function(ev, el) {
-        didactor.resolveQuestions(el.loaded);
+    $(document).bind("didactorContentLoaded",  function(ev, data) {
+        didactor.resolveQuestions(data.loaded);
     });
-    $(document).bind("didactorContent",  function(ev, el) {
-        didactor.setUpQuestionEvents(el.loaded);
+    $(document).bind("didactorContent",  function(ev, data) {
+        didactor.setUpQuestionEvents(data.loaded);
+        didactor.setContent(data.number);
     });
 
     $(document).bind("didactorContentBeforeUnload",  function(ev, el) {
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to