aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-12-19 00:29:38 +0100
committerMarcin Kuzminski <marcin@python-works.com>2012-12-19 00:29:38 +0100
commit167302b0ac7605c1fa4ef5d055120b78653d9058 (patch)
treeb7a3ef690ce58291c46925cd408d9f9d0b894bb3
parentc5a254d49d244191f2e2a8ce6a2e67914fb62bdb (diff)
fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests
--HG-- branch : beta
-rw-r--r--rhodecode/public/js/rhodecode.js5
1 files 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'));
}
}