]> git.sur5r.net Git - contagged/commitdiff
Fixed JavaScript errors related to Google Maps and IE
authorDominik Eckelmann <eckelmann@cosmocode.de>
Wed, 3 Dec 2008 12:07:49 +0000 (13:07 +0100)
committerDominik Eckelmann <eckelmann@cosmocode.de>
Wed, 3 Dec 2008 12:07:49 +0000 (13:07 +0100)
darcs-hash:20081203120749-cca46-93ca33d042df341ddb2cc62381fa186fae3480eb.gz

scripts/gui.js
scripts/maps.js
templates/entry_map.tpl
templates/list_map.tpl

index 68ec0a016bdd2c7a627fc5f3a051b8737d499054..d1523203c3d7d320043e191cad5881a213b2a87a 100644 (file)
@@ -113,7 +113,7 @@ $(document).ready(function() {
         helperClass: 'autocompleter',
         selectClass: 'autocompleterSelect',
         inputWidth: true,
-        minchars: 1,
+        minchars: 1
         //multiple: true,
         //multipleSeperator: ','
     });
@@ -134,7 +134,7 @@ $(document).ready(function() {
         helperClass: 'autocompleter',
         selectClass: 'autocompleterSelect',
         inputWidth: true,
-        minchars: 1,
+        minchars: 1
     });
 
     // nice images
@@ -150,7 +150,7 @@ $(document).ready(function() {
         img.className = 'click';
         img.id        = 'tagedit_start';
         $('#tagedit').empty().after(img);
-        $(img).click(tagedit)
+        $(img).click(tagedit);
     }
 
     // note editing
index 6ff50eed8a08e9f62826836b344431bb9ab00523..d1ef0c08eb1caf80132e36280da60bfada3b9f21 100644 (file)
@@ -3,19 +3,21 @@ var gmap_data = Array();
 var gmap_centered = false;
 
 function gmap_loader(){
-    if (!GBrowserIsCompatible()) return;
+    if (!GBrowserIsCompatible()) {
+       //return;
+    };
 
     var map = new GMap2(document.getElementById("google_map"));
     var geocoder = new GClientGeocoder();
     map.addControl(new GLargeMapControl());
     map.addControl(new GMapTypeControl());
     map.setCenter(new GLatLng(52.514863,13.381863),10);
-
     for (var i=0; i<gmap_data.length; i++){
         var t = 1;
         if(i>10) t = 1000;
         if(i>20) t = 2000;
-        gmap_add(map,geocoder,gmap_data[i].adr,gmap_data[i].info,t)
+        gmap_add(map,geocoder,gmap_data[i].adr,gmap_data[i].info,t);
+
     }
 }
 
index 5fb83e0bffa53963e31105bd7f2bf7eea63fed2d..f16f0b236c75869e1033e4a8b774208e99458619 100644 (file)
@@ -1,19 +1,21 @@
 {include file="header.tpl"}
 
+
 <script type="text/javascript">
 
     gmap_data = [
         {ldelim}
-            adr: '{$entry.street|escape:javascript}, {$entry.zip|escape:javascript} {$entry.location|escape:javascript}',
-            info: '\x3ch4\x3e{$lang.business|escape:javascript}\x3c/h4\x3e{$entry.street|escape:javascript}\x3cbr /\x3e{$entry.zip|escape:javascript} {$entry.location|escape:javascript}'
+            'adr': '{$entry.street|escape:javascript}, {$entry.zip|escape:javascript} {$entry.location|escape:javascript}',
+            'info': '\x3ch4\x3e{$lang.business|escape:javascript}\x3c/h4\x3e{$entry.street|escape:javascript}\x3cbr /\x3e{$entry.zip|escape:javascript} {$entry.location|escape:javascript}'
         {rdelim},
         {ldelim}
-            adr: '{$entry.homestreet|replace:"\n":", "|escape:javascript}',
-            info: '\x3ch4\x3c{$lang.private|escape:javascript}\x3c/h4\x3e{$entry.homestreet|replace:"\n":"\x3cbr /\x3e"|escape:javascript}'
+            'adr': '{$entry.homestreet|replace:"\n":", "|escape:javascript}',
+            'info': '\x3ch4\x3c{$lang.private|escape:javascript}\x3c/h4\x3e{$entry.homestreet|replace:"\n":"\x3cbr /\x3e"|escape:javascript}'
         {rdelim}
     ];
 </script>
 
+
 <div id="map">
 
     <h1>
     {$entry.givenname|h} {$entry.name|h}
     </h1>
 
-
     <div id="google_map"></div>
 
-
-
 </div>
-
-{include file="footer.tpl"}
+{include file="footer.tpl"}
\ No newline at end of file
index a710ce77f5a786afea5d7f7079b8463941470dff..902719d84c6dc8fa5f599a8643d61d1274a39b85 100644 (file)
@@ -7,6 +7,7 @@
     ];
 </script>
 
+
 <div id="map">
 
 <div id="google_map"></div>