Opened 10 years ago

Closed 10 years ago

#3758 closed bug (notabug)

non <ul><li> tags doesn't work for custom tabTemplate

Reported by: 4pcbr Owned by:
Priority: minor Milestone: 1.7
Component: ui.tabs Version: 1.6rc4
Keywords: Cc:
Blocked by: Blocking:

Description

I've tried to create tabs with tabTemplate: "<div><a href="#{href}"><span>{label}</span></a></div>" i.e. I've placed some divs into internal parent div, and find that here is an error while calling tabify method.

At lines 47 and 221 in ui.tabs.js here is a concrete li tag selectors:

l47: this.$lis = $('li:has(a[href])', this.element); l221: var $li = $(this).parents('li:eq(0)'),...

I've changed that selectors: '*:has(a[href])' and '*:eq(0)' It's enables useing another tags, similar to my example.

I think this way is more flexible for users while it's allowed to use custom template : )

Change History (1)

comment:1 Changed 10 years ago by klaus.hartl

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.