Private GIT

Skip to content
Snippets Groups Projects
Commit 91f40f04 authored by Sylvestre Ho's avatar Sylvestre Ho
Browse files

tooltips work on IE 7 now

git-svn-id: http://svn.centreon.com/trunk/centreon@12476 6bcd3966-0018-0410-8128-fd23d134de7e
parent 294a48a3
Branches
Tags
No related merge requests found
...@@ -22,7 +22,11 @@ function CentreonToolTip() ...@@ -22,7 +22,11 @@ function CentreonToolTip()
$$('img.' + _self._className).each(function(el){ $$('img.' + _self._className).each(function(el){
el.src = _self._source; el.src = _self._source;
el.setStyle('cursor:pointer'); el.setStyle('cursor:pointer');
if (Prototype.Browser.IE == true) {
el.onclick = function() { TagToTip("help:"+el.getAttribute('name'), TITLE, _self._title , CLOSEBTN, true, FIX, [this, 0, 5], BGCOLOR, '#ffff99', BORDERCOLOR, 'orange', TITLEFONTCOLOR, 'black', TITLEBGCOLOR, 'orange', CLOSEBTNCOLORS, ['','black', 'white', 'red'], WIDTH, -300, SHADOW, true, TEXTALIGN, 'justify'); };
} else {
el.setAttribute('onclick' , 'TagToTip("help:'+el.getAttribute("name")+'", TITLE, "' + _self._title + '", CLOSEBTN, true, FIX, [this, 0, 5], BGCOLOR, "#ffff99", BORDERCOLOR, "orange", TITLEFONTCOLOR, "black", TITLEBGCOLOR, "orange", CLOSEBTNCOLORS, ["","black", "white", "red"], WIDTH, -300, SHADOW, true, TEXTALIGN, "justify");'); el.setAttribute('onclick' , 'TagToTip("help:'+el.getAttribute("name")+'", TITLE, "' + _self._title + '", CLOSEBTN, true, FIX, [this, 0, 5], BGCOLOR, "#ffff99", BORDERCOLOR, "orange", TITLEFONTCOLOR, "black", TITLEBGCOLOR, "orange", CLOSEBTNCOLORS, ["","black", "white", "red"], WIDTH, -300, SHADOW, true, TEXTALIGN, "justify");');
}
}); });
} }
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment