Skip to main content

Search and Top Navigation

#3758 closed bug (notabug)

Opened January 03, 2009 05:35PM UTC

Closed January 10, 2009 11:18AM UTC

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 : )

Attachments (0)
Change History (1)

Changed January 10, 2009 11:18AM UTC by klaus.hartl comment:1

resolution: → invalid
status: newclosed