From: Scott González Date: Tue, 17 May 2011 20:23:10 +0000 (-0400) Subject: Tabs: Don't cancel existing ajax requests when programmatically loading a tab. Fixes... X-Git-Tag: 1.9m5~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=03939fc8c14cd93f081c3195cdcdef6c56a6fccf;p=jquery-ui.git 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. --- diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index b20cd9a26..239805b14 100644 --- a/ui/jquery.ui.tabs.js +++ b/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; + } }); }