mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
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.
This commit is contained in:
parent
ad53b55f61
commit
03939fc8c1
8
ui/jquery.ui.tabs.js
vendored
8
ui/jquery.ui.tabs.js
vendored
@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user