From 167302b0ac7605c1fa4ef5d055120b78653d9058 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Wed, 19 Dec 2012 00:29:38 +0100 Subject: fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests --HG-- branch : beta --- rhodecode/public/js/rhodecode.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js index 5b1ddb2f..5d7bfe10 100644 --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -416,7 +416,6 @@ YAHOO.yuitip.main = { }, init: function(){ - yt._tooltip = ''; yt.tipBox = yt.$('tip-box'); if(!yt.tipBox){ yt.tipBox = document.createElement('div'); @@ -457,7 +456,7 @@ YAHOO.yuitip.main = { if(yt.tipText !== ''){ // save org title - yt._tooltip = yt.tipText; + YUD.setAttribute(el, 'tt_title', yt.tipText); // reset title to not show org tooltips YUD.setAttribute(el, 'title', ''); @@ -495,7 +494,7 @@ YAHOO.yuitip.main = { } else { YUD.setStyle(yt.tipBox, 'display', 'none'); } - YUD.setAttribute(el,'title', yt._tooltip); + YUD.setAttribute(el,'title', YUD.getAttribute(el, 'tt_title')); } } -- cgit v1.2.3