mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Tabs: Preparing for when jQuery starts always returning jqXHR objects from $.ajax().
This commit is contained in:
parent
85639bf0fa
commit
90705cdffe
5
ui/jquery.ui.tabs.js
vendored
5
ui/jquery.ui.tabs.js
vendored
@ -513,7 +513,10 @@ $.widget( "ui.tabs", {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( this.xhr ) {
|
// support: jQuery <1.8
|
||||||
|
// jQuery <1.8 returns false if the request is canceled in beforeSend,
|
||||||
|
// but as of 1.8, $.ajax() always returns a jqXHR object.
|
||||||
|
if ( this.xhr && this.xhr.statusText !== "canceled" ) {
|
||||||
this.lis.eq( index ).addClass( "ui-tabs-loading" );
|
this.lis.eq( index ).addClass( "ui-tabs-loading" );
|
||||||
|
|
||||||
this.xhr
|
this.xhr
|
||||||
|
Loading…
Reference in New Issue
Block a user