Skip to main content

Search and Top Navigation

#6710 closed bug (fixed)

Opened December 01, 2010 05:59PM UTC

Closed December 07, 2010 09:29PM UTC

Last modified December 20, 2010 01:42PM UTC

tabs module uses global selectors instead of local to "this.element" element

Reported by: saksmlz Owned by:
Priority: minor Milestone: 1.8.7
Component: ui.tabs Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:
Description

There is a difference in how does it work in cases:

Consider we have second html converted into document fragment.

var container = $('<div><div id="tabs"><ul><li><a href="#tabs-1">Nunc tincidunt</a></li><li><a href="#tabs-2">Proin dolor</a></li> </ul> <div id="tabs-1"> <p>first</p> </div> <div id="tabs-2"> <p>second</p> </div></div>');

1. container.find('#tabs').appendTo('body').tabs();

2. container.find('#tabs').tabs().appendTo('body');

Variant 1 works as expected but 2 don't.

Attachments (0)
Change History (4)

Changed December 01, 2010 06:03PM UTC by saksmlz comment:1

Changed December 07, 2010 09:29PM UTC by saks comment:2

resolution: → fixed
status: newclosed

Tabs: Added context to global selectors. Fixed #6710 - tabs module uses global selectors instead of local to "this.element" element.

Changeset: 63ec1152d810a80596b195301ee3d2cd3d6a1776

Changed December 08, 2010 06:39PM UTC by scottgonzalez comment:3

milestone: 1.91.8.7

Changed December 20, 2010 01:42PM UTC by scottgonzalez comment:4

#5857 is a duplicate of this ticket.