Fixes #4501 - Tabs should work with ordered lists (<ol>) in addition to unordered (<ul>)
Fixes #4506 - tabs(): allow more flexibility in specifying what list is used
_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 = $([]);