Skip to main content

Search and Top Navigation

#3593 closed bug (notabug)

Opened November 15, 2008 07:36PM UTC

Closed December 08, 2008 04:19PM UTC

Last modified October 11, 2012 09:15PM UTC

"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 November 15, 2008 07:40PM UTC.
Change History (3)

Changed November 18, 2008 12:28AM UTC by brian comment:1

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.

Changed December 08, 2008 04:19PM UTC by klaus.hartl comment:2

resolution: → invalid
status: newclosed

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

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted