I tried to make hoverIntent work: #502318: How to make use of hoverIntent?

But the 'additionalJavascript' seems to actually make hoverIntent not work. Maybe I don't understand the code in beautytips_add_beautytips(). What is this key for?

Comments

kleinmp’s picture

After looking at issue #502318: How to make use of hoverIntent?, I tried the same thing out and had the same issue as you, though I'm not sure why. It works for me using other js, but not with hoverIntent for some reason. You are using the 'additionalJavascript' key correctly. I'll find some time in the next few days to try and solve this problem.

mattyoung’s picture

I notice the "additionalJavascript" key is added to "settings". It seems this is unnecessary. You had the unset() called commented out. If you view page source, you can see this key in the settings array.

I suggest take this key out and add hoverIntent js automatically if trigger = 'hoverIntent'?

you can load hoverIntent.js and all jquery plugins using http://drupal.org/project/jquery_plugin? see #505836: Use jquery_plugin?

kleinmp’s picture

Status: Active » Closed (fixed)

I agree. This key is sort of useless, so I removed it and committed the changes to the dev version.