mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
UI Tabs: a fix for messed up animations and ajax tabs
This commit is contained in:
parent
83eafe63d9
commit
b129e79ba7
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user