accordion: fix for newContent/oldContent in the UI object that was pointing to the workaround wrapper (temporary, until we remove the wrapper completely)

This commit is contained in:
Paul Bakaus 2009-01-25 21:20:15 +00:00
parent 802960fbad
commit 80dd45b693

View File

@ -251,8 +251,8 @@ $.widget("ui.accordion", {
options: o,
newHeader: clickedIsActive && !o.alwaysOpen ? $([]) : clicked,
oldHeader: this.active,
newContent: clickedIsActive && !o.alwaysOpen ? $([]) : toShow,
oldContent: toHide
newContent: clickedIsActive && !o.alwaysOpen ? $([]) : toShow.find('> *'),
oldContent: toHide.find('> *')
},
down = this.headers.index( this.active[0] ) > this.headers.index( clicked[0] );