create menu for menu tabs which don't fit in one line

fix tooltip.js error when not in pma frame
This commit is contained in:
Crack
2010-07-25 22:10:38 +02:00
parent 2d67cb58c4
commit 5afd385f30
6 changed files with 206 additions and 24 deletions

View File

@@ -31,6 +31,9 @@ var myTooltipContainer = null;
*/
function PMA_TT_init()
{
if (!window.parent.getElementsByClassName) {
return;
}
// get all 'light bubbles' on page
var tooltip_icons = window.parent.getElementsByClassName('footnotemarker', document, 'sup');
var tooltip_count = tooltip_icons.length;
@@ -48,7 +51,7 @@ function PMA_TT_init()
document.body.appendChild(myTooltipContainer);
// capture mouse-events
for (i = 0; i < tooltip_count; i++) {
for (var i = 0; i < tooltip_count; i++) {
window.parent.addEvent(tooltip_icons[i], 'mousemove', mouseMove);
window.parent.addEvent(tooltip_icons[i], 'mouseover', pmaTooltip);
window.parent.addEvent(tooltip_icons[i], 'mouseout', swapTooltip);