helperClass: 'autocompleter',
selectClass: 'autocompleterSelect',
inputWidth: true,
- minchars: 1,
+ minchars: 1
//multiple: true,
//multipleSeperator: ','
});
helperClass: 'autocompleter',
selectClass: 'autocompleterSelect',
inputWidth: true,
- minchars: 1,
+ minchars: 1
});
// nice images
img.className = 'click';
img.id = 'tagedit_start';
$('#tagedit').empty().after(img);
- $(img).click(tagedit)
+ $(img).click(tagedit);
}
// note editing
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);
+
}
}
{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
];
</script>
+
<div id="map">
<div id="google_map"></div>