From a34fee8f6340ec042d830a25592c966484168132 Mon Sep 17 00:00:00 2001
From: Matthew Juhl <mjuhl24@gmail.com>
Date: Thu, 20 Aug 2009 16:39:50 +0000
Subject: [PATCH] Fix IE error

---
 .../views/default/customindex/metatags.php    | 23 ++++++++++---------
 1 file changed, 12 insertions(+), 11 deletions(-)

diff --git a/customindex/views/default/customindex/metatags.php b/customindex/views/default/customindex/metatags.php
index 4fc074d5..ea91e73d 100644
--- a/customindex/views/default/customindex/metatags.php
+++ b/customindex/views/default/customindex/metatags.php
@@ -51,17 +51,18 @@
 <script type="text/javascript" src="http://globe.poly9.com/api.js"></script>
 <script type="text/javascript" src="mod/customindex/witw_people.js"></script>
 <script type="text/javascript"> 
-    var c=0;
-	var t;
-	var pinsonly=true;
+var c=0;
+var t;
+var pinsonly=true;
       
 function startMap() {
-	this.toggleDashboard();
-	self = this;
+	this.toggleDashboard();	
+	//self = this;
 	letsdothisloop('0');
 	pinsonly=false;
 	letsdothisloop('5000');
 };
+
 function letsdothisloop(delay) {
 	if(c==0) displayNancyAndreasen();
 	else if(c==1) displayAtorodAzizinamini();
@@ -120,14 +121,14 @@ function openLocation(lng, lat, username, location, displayname, title, comment,
 		clearTimeout(t);
 	var latlng = new FE.LatLng(lat,lng);
 	if(!pinsonly){	
-		setTimeout(function(){self.panTo(latlng,1.5,"easeInOutQuad")}, 50);
-		self.zoomTo(19505000,1.5,"easeInOutQuad");
+		setTimeout(function(){/*self*/map1.panTo(latlng,1.5,"easeInOutQuad")}, 50);
+		map1./*self.*/zoomTo(19505000,1.5,"easeInOutQuad");
 	}
 	label = window.label = new FE.Pushpin(latlng,new FE.Icon('<?php echo $CONFIG->url ?>/mod/customindex/map-pin-12.png'));
 	//make pins clickable
 	if(pinsonly) 
 		FE.Event.addListener(label, 'click', function() { openLocation(lng, lat, username, location, displayname, title, comment, linkname);});
-	self.addOverlay(label);
+	/*self*/map1.addOverlay(label);
 	if(!pinsonly)
 		applylabel(latlng, location, title, comment, displayname, username, linkname);
 };
@@ -141,9 +142,9 @@ function applylabel(latlng, location, title, comment, displayname, username, lin
 
 WDN.jQuery(document).ready(function() {
 	try{
-	   var map = new FE.Map(document.getElementById("globeInner"));
-	   map.onLoad = startMap;
-	   map.load();
+	   window.map1 = new FE.Map(document.getElementById("globeInner"));
+	   map1.onLoad = startMap;
+	   map1.load();
 	}catch(e){}
 });
 
-- 
GitLab