diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-17 16:23:10 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-17 16:23:10 -0400 |
commit | 03939fc8c14cd93f081c3195cdcdef6c56a6fccf (patch) | |
tree | 99bada2969d64ca0504e68054c40c499994d98c2 /ui/jquery.ui.tabs.js | |
parent | ad53b55f619a58c34d2d8df3a1943da60b8ab9a4 (diff) | |
download | jquery-ui-03939fc8c14cd93f081c3195cdcdef6c56a6fccf.tar.gz jquery-ui-03939fc8c14cd93f081c3195cdcdef6c56a6fccf.zip |
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.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 8 |
1 files changed, 3 insertions, 5 deletions
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; + } }); } |