From 0a21461ab73e4ec2ed18ea4961f35bbb18d0653c Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 31 Jan 2012 11:39:06 +0100 Subject: [PATCH] Upgrade code to jQuery 1.7.1 --- www/include/jquery.tooltip.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/www/include/jquery.tooltip.js b/www/include/jquery.tooltip.js index 7d9b007d4d..441e0d2960 100644 --- a/www/include/jquery.tooltip.js +++ b/www/include/jquery.tooltip.js @@ -51,7 +51,6 @@ delayAjax : function(a,b,c) { -// var options_serial = p4.tot_options; var query = p4.tot_query; var datas = { @@ -83,7 +82,7 @@ this.tooltipText = $(this).attr('title'); this.tooltipSrc = $(this).attr('tooltipsrc'); - this.ajaxLoad = (this.tooltipText === '' && this.tooltipSrc !== ''); + this.ajaxLoad = ($.trim(this.tooltipText) === '' && this.tooltipSrc !== ''); this.ajaxTimeout; this.orEl = $(this); @@ -241,8 +240,8 @@ function positioning(event) { - - helper.body.html(title).show(); + helper.body.html(title); + helper.body.show(); $this = $.tooltip.current; // fix PNG background for IE if (settings($this).fixPNG )