Skip to main content

Search and Top Navigation

#5819 closed bug (worksforme)

Opened July 12, 2010 11:45AM UTC

Closed July 12, 2010 12:40PM UTC

Last modified October 11, 2012 09:15PM UTC

parrents tabsshow-event triggerd by childtab

Reported by: Floyd Owned by:
Priority: minor Milestone:
Component: ui.tabs Version: 1.8.2
Keywords: ui.tabs tabshow Cc:
Blocked by: Blocking:
Description

Testcase: http://jsfiddle.net/gjxvq/1/

We have a tab (called firsttab) with in his content another tab (called childtab).

We bind the tabshow-event to the firsttab.

if we click to one of the tabs in "firsttab" all work fine (Tab 1 - Tab 5)

if we click to one of the "childtab" tabs (Tab 1.1 - Tab 1.3) the tabshow-event who are bind to the first tab is triggerd.

Attachments (0)
Change History (3)

Changed July 12, 2010 12:13PM UTC by Floyd comment:1

i handle this problem by change my tabsshow-event-funtion from

$("#tabs").bind('tabsshow', 
  function(event, ui) { 
    funcX(ui.index); 
  });

to

$("#tabs").bind('tabsshow', 
  function(event, ui) { 
    if ((/#(.*?)$/im).exec(ui.tab)[1] == this.id)
      funcX(ui.index); 
  });

Changed July 12, 2010 12:40PM UTC by scottgonzalez comment:2

resolution: → worksforme
status: newclosed

Events bubble; check the target.

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

milestone: TBD

Milestone TBD deleted