Mercurial > kallithea
changeset 3119:36b18edeca48 beta
fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 19 Dec 2012 00:29:38 +0100 |
parents | 56cdbcf0678a |
children | c69006a70e6b |
files | rhodecode/public/js/rhodecode.js |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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')); } }