Closed (fixed)
Project:
JavaScript Tabs
Version:
7.x-1.3
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 11:15 UTC
Updated:
16 Jul 2013 at 13:24 UTC
I added a bit of code to automatically close the menu after 4 seconds of inaction.
Sharing below.
Comments
Comment #1
ken hawkins commentedStarting at line 13:
Comment #2
vip_sa commentedWhere must these lines of code go please?
Comment #3
ken hawkins commentedThis goes into the "javascript_tabs.js" file
Comment #4
vip_sa commentedThank you
Comment #5
Sunlight Studios commentedI have uploaded version 1.4 of the module which incorporates your suggestion, once this has been pushed through to the download page then please give it a try.
The only addition I made was to clear the timeout on each mouseleave before re-setting it, otherwise the slideToggle() could be queued multiple times if the mouse moved quickly in & out of the menu (ie. the menu would close & open over and over and look a bit weird).
Comment #6
Sunlight Studios commented