Skip to content

Commit

Permalink
Tabs: Don't cancel existing ajax requests when programmatically loadi…
Browse files Browse the repository at this point in the history
…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 03939fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ui/jquery.ui.tabs.js
Expand Up @@ -534,10 +534,6 @@ $.widget( "ui.tabs", {
panel: panel
};

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

// not remote
if ( !url ) {
return;
Expand Down Expand Up @@ -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;
}
});
}

Expand Down

0 comments on commit 03939fc

Please sign in to comment.