aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-09 16:04:33 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-09 16:55:31 -0400
commit9ea6db634f392b5432e03f893cd48a9c2e15cbb5 (patch)
tree54d34a5a03a3f992dfd4d20847f73c69a83fa212 /ui/jquery.ui.tabs.js
parent0adeb9b0e1b2883eb008917333effe12ad20a64d (diff)
downloadjquery-ui-9ea6db634f392b5432e03f893cd48a9c2e15cbb5.tar.gz
jquery-ui-9ea6db634f392b5432e03f893cd48a9c2e15cbb5.zip
Tabs: Only trigger tabsload on success.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r--ui/jquery.ui.tabs.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 8da11367e..e7d4e3513 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -621,6 +621,7 @@ $.widget( "ui.tabs", {
this.xhr
.success(function( response ) {
panel.html( response );
+ self._trigger( "load", event, eventData );
})
.complete(function( jqXHR, status ) {
if ( status === "abort" ) {
@@ -631,13 +632,11 @@ $.widget( "ui.tabs", {
// "tabs" queue must not contain more than two elements,
// which are the callbacks for the latest clicked tab...
self.element.queue( "tabs", self.element.queue( "tabs" ).splice( -2, 2 ) );
-
- delete this.xhr;
}
self.lis.eq( index ).removeClass( "ui-tabs-loading" );
- self._trigger( "load", event, eventData );
+ delete self.xhr;
});
}