Skip to content
Permalink
Browse files

UI Tabs: a fix for messed up animations and ajax tabs

  • Loading branch information...
Klaus Hartl
Klaus Hartl committed Jun 12, 2009
1 parent 83eafe6 commit b129e79ba7d12ede5f09f85f2b932fc1a10a17ca
Showing with 4 additions and 0 deletions.
  1. +4 −0 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();

0 comments on commit b129e79

Please sign in to comment.
You can’t perform that action at this time.