From e41f9bddc91c0e9afebe06620d8ba2e3ed52620c Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 24 Jun 2013 13:20:40 +0000 Subject: feature 2885: forgotten jQuery(document).ready git-svn-id: http://piwigo.org/svn/trunk@23497 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/themes/default/template/history.tpl | 78 ++++++++++++++++--------------- 1 file changed, 40 insertions(+), 38 deletions(-) (limited to 'admin/themes') diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index 74fdf52c5..3fe4e738d 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -138,43 +138,45 @@ {combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'} {footer_script}{literal} -jQuery(".IP").one( "mouseenter", function(){ - var that = $(this); - that - .data("isOver", true) - .one("mouseleave", function() { - that.removeData("isOver"); - }); - GeoIp.get( that.text(), function(data) { - if (!data.fullName) return; - - var content = data.fullName; - if (data.latitude && data.region_name) { - content += '
'; - - jQuery(parent).append(append); - return false; +jQuery(document).ready( function() { + jQuery(".IP").one( "mouseenter", function(){ + var that = $(this); + that + .data("isOver", true) + .one("mouseleave", function() { + that.removeData("isOver"); + }); + GeoIp.get( that.text(), function(data) { + if (!data.fullName) return; + + 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