aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template
diff options
context:
space:
mode:
Diffstat (limited to 'admin/themes/default/template')
-rw-r--r--admin/themes/default/template/history.tpl26
1 files changed, 15 insertions, 11 deletions
diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl
index fa0f49e1d..5c4d1a1a7 100644
--- a/admin/themes/default/template/history.tpl
+++ b/admin/themes/default/template/history.tpl
@@ -136,18 +136,22 @@
{if !empty($navbar) }{include file='navigation_bar.tpl'|@get_extent:'navbar'}{/if}
{combine_script id='jquery.geoip' load='async' path='admin/themes/default/js/jquery.geoip.js'}
-{combine_script id='jquery.ui.tooltip' load='footer'}
{footer_script}{literal}
-jQuery(".IP").tooltip( {
- items: "*",
- /*show: {delay:0, effect:"show"},
- hide: {delay:50, effect:"hide"},*/
- content: function(response) {
- var that = $(this);
- GeoIp.get( that.text(), function(data) {
- response( data.fullName );
+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;
+ that.tipTip( {
+ content: data.fullName
+ } );
+ if (that.data("isOver"))
+ that.trigger("mouseenter");
+ });
+} );
{/literal}{/footer_script} \ No newline at end of file