I am trying to set up a view with views_tabs. I installed everything and created a view, but I'm seeing no tabs (nor tabs' content). Firebug reveals that the view is being loaded, and put in tabs, but on line 1 of drupal-tabs.css (part of jstools' tabs, which is why I'm posting here), it says:

html.js div.drupal-tabs { display: none; }

(and since everything is inside div.drupal-tabs, nothing is shown, I guess ...).

Any suggestions on how to get the views tabs to show up? I suppose using

html.js div.drupal-tabs { display: block; }

is a bit too obvious?

I have jQuery update installed, but disabling that didn't help.

Comments

brunodbo’s picture

Title: Tabs not showing due to drupal-tabs.js (line 1) » Tabs not showing due to drupal-tabs.js (line 1) (?)
AlenaSystems’s picture

I have the same problem. I am using Tabs with 'CCK Fieldgroup Tabs' and no Tab shows up unless I remove or change the line in drupal-tabs.css
Obviously the issue is elsewhere since removing this line results in losing most formatting and effects on the tabs.
I have Drupal 5.10 and all modules updated.

nedjo’s picture

Are you getting any Javascript errors?

AlenaSystems’s picture

I did not notice any Javascript error.

I just disabled Jquery update module and went back to the original .js scripts from the Drupal 5.10 distro, and tabs are back. So there is definitely a compatibility issue with Jquery update.

brunodbo’s picture

Not getting any Javascript errors either. And indeed, when I disable Javascript update (5.x-2.0 in my case) *and* put back the stock Drupal .js files (forgot to do this above), tabs are back.

brunodbo’s picture

Title: Tabs not showing due to drupal-tabs.js (line 1) (?) » Compatibility issue with jquery_update 5.x-2.0
Category: support » bug

Updating title.

AlenaSystems’s picture

One of the modules we use requires Jquery update module. As a result, we can't use the Tabs component of Javascript Tools due to this compatibility issue for now. We did not find any way to get both modules run together. Is there any patch out there we can apply to the Tabs component?

foxtrotcharlie’s picture

I ran into the same issue when using panels tabs - the css was displaying:

html.js div.drupal-tabs { display: none; }

and therefore none of the secondary tabs were displaying.

In this case, I fixed it by installing the dev version of jstools (jstools-5.x-1.x-dev), and it appeared that the only problem with the stable version of jstools for the tabs was this bit of code at the end of jstools.js:

  // Attach all behaviors.
  $(document).ready(Drupal.attachBehaviors);

Needs to be replaced with:

  // Attach all behaviors.
  $(document).ready(function(){
    Drupal.attachBehaviors(this);
  });

www.parkroad.co.za

nedjo’s picture

@foxtrotcharlie: Thanks for the note! I'd forgotten that this fix hasn't hit stable. I'll post a new stable release.

foxtrotcharlie’s picture

Cool - thanks for your work and the cool module :-)

petey318’s picture

I'm seeing similar issues with collapsiblock in D5. I had to go to Jquery_update 2.0 for another reason, and now it looks like this has caused some problems for collapsiblock, because the blocks aren't collapsing any more...

EDIT: I see that there are already some threads open on this issue, so I am sorry if this is a duplicate.

Is there a way to patch collapsiblock to make it work with jquery_update 2.0?

Any guidelines here would be hugely appreciated! (Collapsiblock is a great module, btw!)

moshe weitzman’s picture

FYI, I used the fix in #8 and it seems to be working fine.

petey318’s picture

I just tested the 5.x dev snapshot, and that seems to work fine too (I only tested collapsiblock).

petey318’s picture

I believe you could mark this off as "fixed" now, because nedjo has released a new stable version 5.x-1.2 which seems to work just fine.

nedjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.