links in Tabs

links in Tabs


currently the entire container is scoured for links to turn into tabs,
including any links you have inside your tab content.
a temporary fix for this which seems to work for me (admittedly
without extensive testing, but works in IE7(quirks) and FF2), is to
change this line:
this.$tabs = $('a:first-child', this.source);
to this:
this.$tabs = $('UL a:first-child', this.source);
this will force the tabber to only search for tab links within the UL
of the container.
however, this WILL probably break links within your tabs intended for
changing tabs. a posible change could be to include a class or
"metadata" within the A tag, so that the tabber can correctly detect
what you want it to read.
for example:
this.$tabs = $('a.tabMe:first-child', this.source);
<a class="tabMe" href="#tab-1">open tab 1</a>
<a class="tabMe" href="http://some.external.link/here.htm">ajax
external link</a>
<a href="http://my.real.link/will/navigate/away.html">standard link</
a>
Hope this helps someone!
Tom