Skip to main content

Search and Top Navigation

#4834 closed enhancement (wontfix)

Opened September 04, 2009 09:53AM UTC

Closed March 23, 2011 02:36PM UTC

Tab anchor tabTemplate with multiple SPAN failing

Reported by: glipman Owned by:
Priority: major Milestone: 1.9.0
Component: ui.tabs Version: 1.7.2
Keywords: anchor span spinner Cc:
Blocked by: Blocking:
Description

As documented elsewhere the tabTemplate needs to have a SPAN for the spinner 'Loading...' to work. The default tabTemplate is therefore:

<li><a href='#{href}'><span>#{label}</span></a></li>

I want to add an 'X' to close the tab so I set tabTemplate to:

<li><a href='#{href}'><span>#{label}</span><span onclick='myCloseTab()'>X</span></a></li>

However: both span-tags are filled with the 'Loading...' text, not just the first one. Also after loading finished the label is inserted in both span's, not just the first one.

As a workaround I use a <div style='display:inline'> instead of my span.

Attachments (0)
Change History (2)

Changed November 17, 2009 06:04PM UTC by jzaefferer comment:1

milestone: TBD1.8
priority: minormajor
type: bugenhancement

Changed March 23, 2011 02:36PM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

The tabTemplate option is being removed. See http://forum.jquery.com/topic/tabs-api-redesign