Changeset - 36b18edeca48
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2012-12-19 00:29:38
marcin@python-works.com
fixes #687 Lazy loaded tooltip bug with simultaneous ajax requests
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rhodecode/public/js/rhodecode.js
Show inline comments
 
@@ -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'));
 
	}
 
}
 

	
0 comments (0 inline, 0 general)