Mercurial > kallithea
diff rhodecode/public/js/rhodecode.js @ 3179:cd50d1b5f35b
merged with beta
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 21 Jan 2013 00:03:44 +0100 |
parents | 5d7f6b22d6b4 |
children | b9ba0d4d3abf |
line wrap: on
line diff
--- a/rhodecode/public/js/rhodecode.js Fri Dec 14 04:45:03 2012 +0100 +++ b/rhodecode/public/js/rhodecode.js Mon Jan 21 00:03:44 2013 +0100 @@ -334,7 +334,7 @@ YUD.setAttribute(target, 'title',_TM['loading...']); YAHOO.yuitip.main.set_listeners(target); YAHOO.yuitip.main.show_yuitip(e, target); - ajaxGET('/changeset_info/{0}/{1}'.format(repo_name,rid), success) + ajaxGET(LAZY_CS_URL.replace('__NAME__',repo_name).replace('__REV__', rid), success) } }); }; @@ -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')); } }