accordion: navigation option wasn't working (fixes #3944)

This commit is contained in:
Paul Bakaus 2009-01-26 12:11:56 +00:00
parent 43efa580dd
commit ef0149adba

View File

@ -22,7 +22,7 @@ $.widget("ui.accordion", {
if ( o.navigation ) {
var current = this.element.find("a").filter(o.navigationFilter);
if ( current.length ) {
if ( current.filter(options.header).length ) {
if ( current.filter(o.header).length ) {
this.active = current;
} else {
this.active = current.parent().parent().prev();