aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui/jquery.ui.tabs.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 18515fdf7..34b7daf1c 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -73,7 +73,8 @@ $.widget("ui.tabs", {
_tabify: function(init) {
- this.list = this.element.children('ul:first');
+ // use $('li:first').parent() so we can find the first ul/ol in DOM order
+ this.list = this.element.find('li:first').parent();
this.lis = $('li:has(a[href])', this.list);
this.anchors = this.lis.map(function() { return $('a', this)[0]; });
this.panels = $([]);