I like the sleek look of your Tabstrip so much more than jQueryUI's version, but I'm having trouble getting a tab to collapse after it's been clicked and is currently active. I'd hate to pry too much into the code behind it, but what I've found is that if that functionality would exist, it would be in this section:
Has anyone accomplished this? I'd hate to break the code by adding my own.
M = j.extend({
...
_click:
function
(b) {
var
c =
this
,
d = a(b.currentTarget),
e = d.find(
"."
+ n),
f = e.attr(m),
g = a(c.contentElement(d.index()));
if
(d.is(
"."
+ D +
",."
+ F)) {
// NOTE: Prevent animation of same selected tab
b.preventDefault();
}
else
{
if
(a(
"."
+ v,
this
.element).filter(
function
() {
return
a(
this
).data(
"animating"
)
}).length) {
return
;}
if
(c.trigger(u, {
item: d[0],
contentElement: g[0]
})) {b.preventDefault();
}
else
{
// NOTE: Animate change of tab
var
h = e.data(w) || f && (f.charAt(f.length - 1) ==
"#"
|| f.indexOf(
"#"
+ c.element[0].id +
"-"
) != -1);
if
(!f || h) b.preventDefault();
else
return
;
c.activateTab(d) && b.preventDefault()
}
}
}
Has anyone accomplished this? I'd hate to break the code by adding my own.