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:
Scott González 2011-05-17 16:23:10 -04:00
parent ad53b55f61
commit 03939fc8c1

View File

@ -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;
}
});
}