r2716 - UI Tabs: a fix for messed up animations and ajax tabs
Author: klaus.hartl
Date: Fri Jun 12 01:36:03 2009
New Revision: 2716
Modified:
trunk/ui/ui.tabs.js
Log:
UI Tabs: a fix for messed up animations and ajax tabs
Modified: trunk/ui/ui.tabs.js
==============================================================================
--- trunk/ui/ui.tabs.js (original)
+++ trunk/ui/ui.tabs.js Fri Jun 12 01:36:03 2009
@@ -600,6 +600,10 @@
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();