MDL-21235 converted help cions to final render outputlib api

This commit is contained in:
Petr Skoda
2010-01-13 18:50:28 +00:00
parent 5d0c95a5ac
commit bf11293a94
3 changed files with 107 additions and 105 deletions
+5 -2
View File
@@ -1248,6 +1248,11 @@ function init_help_icons() {
zIndex: '1000'
});
// remove all titles, they would obscure the YUI tooltip
for (var i = 0; i < iconspans.length; i++) {
iconspans[i].getElementsByTagName('a')[0].title = '';
}
tooltip.contextTriggerEvent.subscribe(
function(type, args) {
// Fetch help page contents asynchronously
@@ -1261,8 +1266,6 @@ function init_help_icons() {
context.title = '';
var link = context.getElementsByTagName('a')[0];
link.title = '';
YAHOO.util.Dom.getElementsByClassName('iconhelp', 'img', link)[0].title = '';
var thistooltip = this;
var ajaxurl = link.href + '&fortooltip=1';