--- a/include/common-template.inc.php +++ b/include/common-template.inc.php @@ -36,9 +36,17 @@ if ($datepicker) echo ''; if (isDebugServer()) echo ' + '; else echo ' + '; if ($datepicker) echo ' "; +} +$(document).ready(function() { + $('#here').click(function(event) { $('#geolocate').val(geolocate()); return false;}); +$('#here').show(); +}); +"; +if (!isset($_SESSION['lat']) || $_SESSION['lat'] == "") echo "geolocate();"; +echo " "; } if (isAnalyticsOn()) echo ' "; - } echo '
'; if (isAnalyticsOn()) { @@ -175,9 +188,9 @@ 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); - })();"; + })();"; $googleAnalyticsImageUrl = googleAnalyticsGetImageUrl(); - echo '