diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-12-25 18:25:46 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-12-25 18:25:46 +0000 |
commit | 9a786e03a1edda7efb31b0ad6b20e5bcd62d9482 (patch) | |
tree | 843ac9b2469ae29571a4b243c07005eb846b5c02 /ui/jquery.ui.tabs.js | |
parent | 4a995c68d4a9a36ae41b0c3d38bfa3f105407190 (diff) | |
download | jquery-ui-9a786e03a1edda7efb31b0ad6b20e5bcd62d9482.tar.gz jquery-ui-9a786e03a1edda7efb31b0ad6b20e5bcd62d9482.zip |
Tabs: fixed to work with empty nav list again.
Fixes #4997 - No longer possible to start with empty tab then add() elements dynamically.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r-- | ui/jquery.ui.tabs.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 32f326d00..b9fad83d4 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -68,8 +68,7 @@ $.widget("ui.tabs", { _tabify: function(init) { - // use $('li:first').parent() so we can find the first ul/ol in DOM order - this.list = this.element.find('li:first').parent(); + this.list = this.element.find('ol,ul').eq(0); this.lis = $('li:has(a[href])', this.list); this.anchors = this.lis.map(function() { return $('a', this)[0]; }); this.panels = $([]); |