diff options
author | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-06-12 08:36:03 +0000 |
---|---|---|
committer | Klaus Hartl <klaus.hartl@googlemail.com> | 2009-06-12 08:36:03 +0000 |
commit | b129e79ba7d12ede5f09f85f2b932fc1a10a17ca (patch) | |
tree | 2b4cc1848b22ac36b0312582fc959839f3dc42be /ui | |
parent | 83eafe63d9cfd02f8b47af996b3838de6b1aa607 (diff) | |
download | jquery-ui-b129e79ba7d12ede5f09f85f2b932fc1a10a17ca.tar.gz jquery-ui-b129e79ba7d12ede5f09f85f2b932fc1a10a17ca.zip |
UI Tabs: a fix for messed up animations and ajax tabs
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.tabs.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/ui.tabs.js b/ui/ui.tabs.js index 865178f19..d05ec9001 100644 --- a/ui/ui.tabs.js +++ b/ui/ui.tabs.js @@ -600,6 +600,10 @@ $.widget("ui.tabs", { this.element.queue([]); this.panels.stop(false, true); + // "tabs" queue must not contain more than two elements, + // which are the callbacks for the latest clicked tab... + this.element.queue("tabs", this.element.queue("tabs").splice(-2, 2)); + // terminate pending requests from other tabs if (this.xhr) { this.xhr.abort(); |