]> source.dussan.org Git - jquery-ui.git/commitdiff
accordion: fix for newContent/oldContent in the UI object that was pointing to the...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 Jan 2009 21:20:15 +0000 (21:20 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Sun, 25 Jan 2009 21:20:15 +0000 (21:20 +0000)
ui/ui.accordion.js

index 95fd55f432bfd5c7fc94ce33b0efeacdb824cd30..0335f22d10e0396e19bb69819da50bcee09e328a 100644 (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] );