From 90ffc4e44be007db419011759f0ae380c7cbfb2e Mon Sep 17 00:00:00 2001 From: Dominik Eckelmann Date: Wed, 3 Dec 2008 13:07:49 +0100 Subject: [PATCH] Fixed JavaScript errors related to Google Maps and IE darcs-hash:20081203120749-cca46-93ca33d042df341ddb2cc62381fa186fae3480eb.gz --- scripts/gui.js | 6 +++--- scripts/maps.js | 8 +++++--- templates/entry_map.tpl | 16 +++++++--------- templates/list_map.tpl | 1 + 4 files changed, 16 insertions(+), 15 deletions(-) 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 @@ ]; +
-- 2.39.5