#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)
Change History (4)
Changed 14 years ago by
comment:1 Changed 14 years ago by
comment:2 Changed 14 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Incorrect usage. Tabs methods must be called on ul element, not on parent.
Note: See
TracTickets for help on using
tickets.
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.