# HG changeset patch # User Marcin Kuzminski # Date 2012-12-18 23:29:38 # Node ID 36b18edeca48ff336dd8483b034cc4dda1e4d253 # Parent 56cdbcf0678af89e2fea177cf669e529281a832d fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js --- 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')); } }