# HG changeset patch # User Marcin Kuzminski # Date 1355873378 -3600 # Node ID 36b18edeca48ff336dd8483b034cc4dda1e4d253 # Parent 56cdbcf0678af89e2fea177cf669e529281a832d fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests diff -r 56cdbcf0678a -r 36b18edeca48 rhodecode/public/js/rhodecode.js --- a/rhodecode/public/js/rhodecode.js Tue Dec 18 18:44:33 2012 +0100 +++ b/rhodecode/public/js/rhodecode.js Wed Dec 19 00:29:38 2012 +0100 @@ -416,7 +416,6 @@ }, init: function(){ - yt._tooltip = ''; yt.tipBox = yt.$('tip-box'); if(!yt.tipBox){ yt.tipBox = document.createElement('div'); @@ -457,7 +456,7 @@ 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 @@ } else { YUD.setStyle(yt.tipBox, 'display', 'none'); } - YUD.setAttribute(el,'title', yt._tooltip); + YUD.setAttribute(el,'title', YUD.getAttribute(el, 'tt_title')); } }