Posted by jdangelo on November 6, 2009 at 2:04pm
Jump to:
| Project: | Tabs (jQuery UI tabs) |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi everyone:
I've been usign tabs 6.x-1.0 and after I upgrade to tabs-6.x-1.2, I began to have problems with pages that includes tabs. (they are not displayed as tabs)
I'm usign tabs as contents on a simple page in the following way :
<h2>Tabs example, basic</h2>
<div class="drupal-tabs js-hide tabs-navigation">
<ul class="tabs clear-block">
<li><a href="#tabs-example1-1"> <span class="tab">One </span></a> </li>
<li class="last"><a href="#tabs-example1-2"> <span class="tab">Two </span></a> </li>
<li class="active"><a href="#tabs-example1-3"> <span class="tab">Three </span></a> </li>
</ul>
</div>
<div id="tabs-example1-1">
<h2 class="drupal-tabs-title js-hide">One</h2>
First tab content.</div>
<div id="tabs-example1-2">
<h2 class="drupal-tabs-title js-hide">Two</h2>
Second tab content.</div>
<div id="tabs-example1-3">
<h2 class="drupal-tabs-title js-hide">Three</h2>
Third tab content.</div>Comparing tabs 6.x-1.0 with tabs-6.x-1.2 I found that tabs_init() is missing, adding that to tabs-6.x-1.2 the problem is solved.
Also I found that now is necesary to use "js-hide" to avoid the tab title to be shown twice, on the tab title and on the tab content. That was not the case in the previous version.
Regards,
Julio
Comments
#1
yea, as far as i can tell tell latest dev and the 1.2 release don't work... i wasted entire night trying to figure out what was wrong with my code.. lol
went back to 1.0 and my tabs now work.
#2
Same here, it worked perfectly with 1.0 and all my tabs page became broken after update.
There are no specials indication on an API change that require to update our code, so I switched back to 1.0 release.
#3
Tabs module is not designed specifically for use with manually coded tabs, so this is not a bug.
The change is that previously (mistakenly) we loaded the tabs JS on every page. Now we load the JS only when needed.
To fix your existing code, you could call
tabs_load()e.g. in your theme's template.php file to load the files.#4
#5
Automatically closed -- issue fixed for 2 weeks with no activity.