aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-01-21 08:46:02 -0500
committerScott González <scott.gonzalez@gmail.com>2012-01-21 08:46:02 -0500
commit6800e1a2f97a7d8aaf20d065aa2ce517528e5068 (patch)
tree82ac9707d57c122ab5c0d60dfd62f78da32396bd /ui/jquery.ui.tabs.js
parentda89fcbc07f236d43e6a1edd98603beea6e245b6 (diff)
downloadjquery-ui-6800e1a2f97a7d8aaf20d065aa2ce517528e5068.tar.gz
jquery-ui-6800e1a2f97a7d8aaf20d065aa2ce517528e5068.zip
Tabs: Pass tab and panel in create event. Fixes #7868 - Tabs: Provide tab and panel details in create event.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r--ui/jquery.ui.tabs.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 168aa0ee5..7a701405c 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -120,6 +120,13 @@ $.widget( "ui.tabs", {
}
},
+ _getCreateEventData: function() {
+ return {
+ tab: this.active,
+ panel: !this.active.length ? $() : this._getPanelForTab( this.active )
+ };
+ },
+
_setOption: function( key, value ) {
if ( key == "active" ) {
// _activate() will handle invalid values and update this.options