Skip to content
Permalink
Browse files

Tabs: Don't cancel existing ajax requests when programmatically loadi…

…ng a tab. Fixes #7204 - Tabs: Programmatically loading a tab shouldn't cancel active ajax requests.
  • Loading branch information...
scottgonzalez committed May 17, 2011
1 parent ad53b55 commit 03939fc8c14cd93f081c3195cdcdef6c56a6fccf
Showing with 3 additions and 5 deletions.
  1. +3 −5 ui/jquery.ui.tabs.js
@@ -534,10 +534,6 @@ $.widget( "ui.tabs", {
panel: panel
};

if ( this.xhr ) {
this.xhr.abort();
}

// not remote
if ( !url ) {
return;
@@ -566,7 +562,9 @@ $.widget( "ui.tabs", {

self.lis.eq( index ).removeClass( "ui-tabs-loading" );

delete self.xhr;
if ( jqXHR === self.xhr ) {
delete self.xhr;
}
});
}

0 comments on commit 03939fc

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