From: Dominik Eckelmann Date: Wed, 3 Dec 2008 12:07:49 +0000 (+0100) Subject: Fixed JavaScript errors related to Google Maps and IE X-Git-Tag: 0.7.1~17 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=90ffc4e44be007db419011759f0ae380c7cbfb2e;p=contagged Fixed JavaScript errors related to Google Maps and IE darcs-hash:20081203120749-cca46-93ca33d042df341ddb2cc62381fa186fae3480eb.gz --- diff --git a/scripts/gui.js b/scripts/gui.js index 68ec0a0..d152320 100644 --- a/scripts/gui.js +++ b/scripts/gui.js @@ -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 diff --git a/scripts/maps.js b/scripts/maps.js index 6ff50ee..d1ef0c0 100644 --- a/scripts/maps.js +++ b/scripts/maps.js @@ -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; i10) 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); + } } diff --git a/templates/entry_map.tpl b/templates/entry_map.tpl index 5fb83e0..f16f0b2 100644 --- a/templates/entry_map.tpl +++ b/templates/entry_map.tpl @@ -1,19 +1,21 @@ {include file="header.tpl"} + +

@@ -22,11 +24,7 @@ {$entry.givenname|h} {$entry.name|h}

-
- -
- -{include file="footer.tpl"} +{include file="footer.tpl"} \ No newline at end of file diff --git a/templates/list_map.tpl b/templates/list_map.tpl index a710ce7..902719d 100644 --- a/templates/list_map.tpl +++ b/templates/list_map.tpl @@ -7,6 +7,7 @@ ]; +