Opened 11 years ago

Closed 11 years ago

Last modified 7 years ago

#3593 closed bug (notabug)

"add" function not working correctly

Reported by: brian Owned by: klaus.hartl
Priority: minor Milestone:
Component: ui.tabs Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:

Description

When calling the "add" function, the new LI and DIV elements are added in the wrong place.

Was able to fix the problem by changing:

$li.appendTo(this.element);
$panel.appendTo(this.element[0].parentNode);

To:

$li.appendTo($('ul:first',this.element));
$panel.appendTo(this.element);

Attachments (1)

bug1.zip (26.4 KB) - added by brian 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by brian

Attachment: bug1.zip added

comment:1 Changed 11 years ago by brian

I just realized that I was initializing the tabs wrong. Instead of initializing the UL, I was initializing the containing DIV. You can cancel this ticket.

comment:2 Changed 11 years ago by klaus.hartl

Resolution: invalid
Status: newclosed

Incorrect usage. Tabs methods must be called on ul element, not on parent.

comment:3 Changed 7 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.