rotor block not showing in certain regions

robertgarrigos - June 9, 2008 - 14:02
Project:Banner Rotor Module
Version:5.x-1.6
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

the rotor block is not showing in certain regions: side bars are ok but other regions (tried with bluemarine and my own theme) are not. the html code is there with a display:none style. The problem is that the js file is not being added.

#1

Robaj - August 5, 2008 - 06:11

Try this, I know it's not beautiful, but working :)

Add this code to the end of the rotor.js.

function addEvent(obj, evType, fn)
{
if (obj.addEventListener)
{
obj.addEventListener(evType, fn, true);
return true;
}
else if (obj.attachEvent)
{
var r = obj.attachEvent("on"+evType, fn);
return r;
}
else
{
return false;
}
}

addEvent(window, 'load', init_rotor);

 
 

Drupal is a registered trademark of Dries Buytaert.