Closed (outdated)
Project:
Quick Tabs
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2009 at 20:48 UTC
Updated:
19 May 2020 at 19:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
pasqualleThis is a problem in rc3 also..
if was probably introduced with http://drupal.org/cvs?commit=182218 when we fixed the clean URL problem with using the l() function. As all tabs link to the current page therefore all links get the "active" attribute automatically, see http://api.drupal.org/api/function/l/6
So I am not sure if we need to fix this, as the links should be active if we compare the current path with the tab links..
Comment #2
infojunkieOK. Thanks for your help.
Comment #3
PixelClever commentedIt seems to me that even if the active class is being assigned by default there should still be a class assigned to the a tag that sets it as truly active something like .current or .qt_active . Just my take on it.
Comment #4
dotpex commentedI have a simple fix for proper active class on a element.
in quicktabs.module -> function theme_quicktabs_tabs change line:
to:
and i quicktabs.js find:
and append two lines:
Comment #5
XiaN Vizjereij commentedRan into the same problem and got it fixed by the comment above. Thank you very much.
Comment #6
MichaelP commented@dotpex's fix #4 works fine for me, here it is rolled into a patch against 6.x-2.0-rc5.
Many thanks.
Comment #7
katbailey commentedUnfortunately this approach will not work when js is disabled. We can't simply change the href of the link - if you're originally on node/1, the tabs will be linking to node/10, node/11, node/12 etc...
Comment #8
XiaN Vizjereij commentedkatbaily : That might be due to http://drupal.org/node/909410#comment-3711120. Try going back to RC4 and see if the problem still exists.
Comment #9
katbailey commented@XiaN from the comment you linked to:
I could be wrong but what seems most likely to me is that this was happening in your case because you had applied the patch from #6 above. This does not happen with a regular rc5. Can you please check this and if this is the case please follow up in that other issue.
Comment #10
XiaN Vizjereij commentedSorry, but currently I don't have an active project that uses QuickTabs, so i can't test it :(
Comment #11
katbailey commented@XiaN, if you're not even going to take the time to confirm the issues you're posting comments about in these threads, please don't comment on them. You are just adding confusion and making it harder for me to ascertain what is and isn't an issue that needs my attention.
Comment #12
XiaN Vizjereij commentedI literally launched a new website design today on the urgent request of a customer. I planed to using quicktabs there, but removed it, because i couldn't finish the feature in time ( i had 2 more weeks, but he launched an advertisement campaign containing the new website images without letting me know ).
I'm very sorry. I had QuickTabs on an active project at the time i posted the comment :(
Comment #13
katbailey commentedI am very tempted to mark this as "won't fix" as to me it seems like this is really core's bug, i.e. not being able to override this side effect of the l() function. I won't be fixing it in the 2.x branch anyway, that's fairly certain at this point.
Comment #14
avpadernoI am closing this issue, since it's for a Drupal version no longer supported.