diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-05-16 14:41:27 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-05-16 14:41:27 -0400 |
commit | 5e588593473f0988a958a2cbba4951a895821ba8 (patch) | |
tree | b7eef49f898be435aee9683c2efc7fcba9d02595 /ui | |
parent | 965cb7359ea704715839e3c171ae751d6a32dde9 (diff) | |
download | jquery-ui-5e588593473f0988a958a2cbba4951a895821ba8.tar.gz jquery-ui-5e588593473f0988a958a2cbba4951a895821ba8.zip |
Tabs: Added tests for load method.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.tabs.js | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 0df35be33..36c9000ef 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -529,14 +529,14 @@ $.widget( "ui.tabs", { load: function( index, event ) { index = this._getIndex( index ); var self = this, - o = this.options, - a = this.anchors.eq( index )[ 0 ], - panel = self._getPanelForTab( a ), + options = this.options, + anchor = this.anchors.eq( index ), + panel = self._getPanelForTab( anchor ), // TODO until #3808 is fixed strip fragment identifier from url // (IE fails to load from such url) - url = $( a ).attr( "href" ).replace( /#.*$/, "" ), + url = anchor.attr( "href" ).replace( /#.*$/, "" ), eventData = { - tab: $( a ), + tab: anchor, panel: panel }; @@ -558,7 +558,6 @@ $.widget( "ui.tabs", { }); if ( this.xhr ) { - // load remote from here on this.lis.eq( index ).addClass( "ui-tabs-loading" ); this.xhr |