Skip to main content

Bug Tracker

Side navigation

#1845 closed bug (fixed)

Opened October 25, 2007 11:41PM UTC

Closed November 25, 2007 01:39AM UTC

Tabs - Openning multiple AJAX tabs causes spinner to not be removed

Reported by: hiro Owned by: klaus
Priority: minor Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: tabs Cc:
Blocked by: Blocking:

Using Tabs 3 which can be seen demoed on the test page:

Under "Ajax tabs"

Click tab Two then click tab Three very quickly before tab two finishes loading. Notice how the Loading... spinner dialog doesn't not get updated with the proper text? The spinner logo is removed on all tabs, but tab Two remains with the spinner text.

This appears to be caused around line 449 of ui.tabs.js by $span not being a direct pointer to each tab, but of the last one?

I believe I have a somewhat crude fix for this:

from line 442:

// load

if (o.spinner) {

$span.attr('text', $span.html());

$span.html('<em>' + o.spinner + '</em>');


setTimeout(function() {

$(a.hash).load(url, function() {

if (o.spinner) {

tab_contents_id = "a[href='#"+a.href.split('#')[1]+"'] span";





This seems to solve the problem with my test case...

Attachments (1)
  • ui.tabs.js (19.5 KB) - added by hiro October 25, 2007 11:42PM UTC.

    Modified version with ajax fix.

Change History (2)

Changed November 05, 2007 03:40PM UTC by paul comment:1

owner: → klaus

Changed November 25, 2007 01:39AM UTC by klaus comment:2

resolution: → fixed
status: newclosed