Author: michiel
Date: 2010-04-29 13:23:06 +0200 (Thu, 29 Apr 2010)
New Revision: 42073
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-29 10:41:35 UTC (rev 42072)
+++ didactor/trunk/components/core/src/main/webapp/core/js/Didactor.js
2010-04-29 11:23:06 UTC (rev 42073)
@@ -56,11 +56,19 @@
$("div.mmxf a").live(
"click",
function() {
- var reload = document.location.href == this.href;
- document.location.href = this.href;
- if (reload) {
- document.location.reload(true);
+ var href = this.href;
+ var hashIndex = href.indexOf("#");
+ var hash = "";
+ if (hashIndex > 0) {
+ hash = href.substring(hashIndex);
+ href = href.substring(0, hashIndex);
+ if (document.location.href == href) {
+ var append = href.indexOf("?") > 0 ? "&" : "?";
+ href = href + append + "reload";
+ }
}
+ document.location.href = href + hash;
+
});
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs