From a67544b1adbaa0eacf5820b8727060525e1407a7 Mon Sep 17 00:00:00 2001 From: plegall Date: Fri, 17 May 2013 11:07:42 +0000 Subject: feature 2885: only display Google Map on a click git-svn-id: http://piwigo.org/svn/trunk@22715 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/history.tpl | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index cd2b786eb..717893c7e 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -138,7 +138,6 @@ {combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'} {footer_script}{literal} -jQuery(document).ready( function(){ jQuery(".IP").one( "mouseenter", function(){ var that = $(this); that @@ -148,19 +147,34 @@ jQuery(".IP").one( "mouseenter", function(){ }); GeoIp.get( that.text(), function(data) { if (!data.fullName) return; - var content = data.fullName; - if (data.latitude && data.region_name) { - content += "
"; - } + + var content = data.fullName; + if (data.latitude && data.region_name) { + content += '
'; + + jQuery(parent).append(append); + return false; }); {/literal}{/footer_script} \ No newline at end of file -- cgit v1.2.3