From 80dd45b6937b16578610e244832938ab4a075c64 Mon Sep 17 00:00:00 2001 From: Paul Bakaus Date: Sun, 25 Jan 2009 21:20:15 +0000 Subject: [PATCH] accordion: fix for newContent/oldContent in the UI object that was pointing to the workaround wrapper (temporary, until we remove the wrapper completely) --- ui/ui.accordion.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui.accordion.js b/ui/ui.accordion.js index 95fd55f43..0335f22d1 100644 --- a/ui/ui.accordion.js +++ b/ui/ui.accordion.js @@ -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] );