Hovertip config setting for delay and attribute
HylkeVDS - September 18, 2009 - 13:39
| Project: | Hovertips and Clicktips |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Hi,
The javascript uses a nice config var for settings attribute name and delays, but you can't override this variable without editing the file itself. By changing one line you can make the hovertipConfig settable from the already implemented settings page:
line 387, 465 and 504:
var hovertipConfig = window.hovertipConfig ? window.hovertipConfig : {'attribute':'hovertip',
'showDelay': 300,
'hideDelay': 700};
After that you can add
window.hovertipConfig = {'attribute':'hovertip', 'showDelay': 600, 'hideDelay': 300};
to the hoovertip settings page to override the defaults.
