Author: michiel
Date: 2010-04-23 13:16:44 +0200 (Fri, 23 Apr 2010)
New Revision: 42036

Modified:
   didactor/trunk/components/core/src/main/webapp/core/js/Didactor.js
Log:
sigh

Modified: didactor/trunk/components/core/src/main/webapp/core/js/Didactor.js
===================================================================
--- didactor/trunk/components/core/src/main/webapp/core/js/Didactor.js  
2010-04-23 10:23:01 UTC (rev 42035)
+++ didactor/trunk/components/core/src/main/webapp/core/js/Didactor.js  
2010-04-23 11:16:44 UTC (rev 42036)
@@ -46,18 +46,28 @@
                if (self.content != null) break;
             }
             self.block = self.content; // This is the content as defined by 
the URL. 'block' will not be changed.
-            for (var i = 0; i < Didactor.ignoredParameters.length; i++) {
-               var param = Didactor.ignoredParameters[i];
+            for (var j = 0; j < Didactor.ignoredParameters.length; j++) {
+               var param = Didactor.ignoredParameters[j];
                $.query.REMOVE(param);
             }
             self.q = $.query.toString();
 
+           /* Anchors are used for navigation too, so need to refresh the page 
also if only anchor changed */
+           $("div.mmxf a").live(
+               "click",
+               function() {
+                   document.location.href = this.href;
+                   document.location.reload(true);
+               });
 
+
             for (var i = 0; i < Didactor.welcomeFiles.length; i++) {
                var welcomeFile = Didactor.welcomeFiles[i];
                self.url = self.url.replace(new RegExp(welcomeFile + "$"), "");
             }
 
+
+
             $(document).bind("didactorContentLoaded",  function(ev, data) {
                                  self.setContent(data.number);
                                  self.resolveQuestions(data.loaded);

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

Reply via email to