Skip to content

Commit 03939fc

Browse files
committed
Tabs: Don't cancel existing ajax requests when programmatically loading a tab. Fixes #7204 - Tabs: Programmatically loading a tab shouldn't cancel active ajax requests.
1 parent ad53b55 commit 03939fc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

ui/jquery.ui.tabs.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,10 +534,6 @@ $.widget( "ui.tabs", {
534534
panel: panel
535535
};
536536

537-
if ( this.xhr ) {
538-
this.xhr.abort();
539-
}
540-
541537
// not remote
542538
if ( !url ) {
543539
return;
@@ -566,7 +562,9 @@ $.widget( "ui.tabs", {
566562

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

569-
delete self.xhr;
565+
if ( jqXHR === self.xhr ) {
566+
delete self.xhr;
567+
}
570568
});
571569
}
572570

0 commit comments

Comments
 (0)