[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 13 Feb 2004 20:31:41 -0000
albertel Fri Feb 13 15:31:41 2004 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- BUG#2722, makes konqeror less dysfunctional
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.246 loncom/interface/lonnavmaps.pm:1.247
--- loncom/interface/lonnavmaps.pm:1.246 Thu Feb 12 13:00:33 2004
+++ loncom/interface/lonnavmaps.pm Fri Feb 13 15:31:40 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.246 2004/02/12 18:00:33 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.247 2004/02/13 20:31:40 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1587,7 +1587,12 @@
# it's quite likely this might fix other browsers, too, and
# certainly won't hurt anything.
if ($displayedJumpMarker) {
- $result .= "<script>setTimeout(\"location += '#curloc';\", 0)</script>\n";
+ $result .= "
+<script>
+if (location.href.indexOf('#curloc')==-1) {
+ setTimeout(\"location += '#curloc';\", 0)
+}
+</script>";
}
$result .= "</table>";