2

Has anyone gotten the Quicktabs module to work on mouseover/hover instead of click?
There was a patch for version 6.x-2 that does not work with the current version.

0

1 Answer 1

1

I ended up making a couple of edits to quicktabs.js. At its most basic, in line 24 I changed 'click' to 'mouseenter' and changed the name of the quicktabsClick() function to quicktabsHover().

When the user clicked the link in the tab, though, the page refreshed; I added the following at line 25 (below the new call to quicktabsHover):

$(this).unbind('click').bind('click', quicktabsClick);

I also added a new function:

var quicktabsClick = function() {
    return false;
}
4
  • You are not making changes to the modules JS files are you?
    – saadlulu
    Oct 31, 2012 at 7:36
  • I did, yes. And I'm making sure not to update.
    – jay-ess
    Oct 31, 2012 at 21:12
  • @jay-ess Make a patch and submit to Drupal.org
    – niksmac
    Dec 6, 2012 at 6:48
  • @Nikhil - This really needs to be something that is configurable, which I did not do and is out of my league. I believe there has been some talk about making it so, but I have not revisited.
    – jay-ess
    Dec 6, 2012 at 16:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.