aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.accordion.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2013-03-27 15:23:59 -0400
committerScott González <scott.gonzalez@gmail.com>2013-03-27 15:23:59 -0400
commit5a8596cdf3baa4d835e588cda9060a0537236c71 (patch)
tree6b3dd137d27f46c78d80f7b17bb8d1be9c1cabbc /ui/jquery.ui.accordion.js
parent2c43548ac629467596ee64d0c614a0cef3169852 (diff)
downloadjquery-ui-5a8596cdf3baa4d835e588cda9060a0537236c71.tar.gz
jquery-ui-5a8596cdf3baa4d835e588cda9060a0537236c71.zip
Accordion: Maintain collapsed state on refresh. Fixes #9189 - Accordion: refresh() method incorrectly opens collapsed accordion.
Diffstat (limited to 'ui/jquery.ui.accordion.js')
-rw-r--r--ui/jquery.ui.accordion.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js
index c210a29a9..fc2b6bc57 100644
--- a/ui/jquery.ui.accordion.js
+++ b/ui/jquery.ui.accordion.js
@@ -223,7 +223,7 @@ $.widget( "ui.accordion", {
options.active = false;
this.active = $();
// active false only when collapsible is true
- } if ( options.active === false ) {
+ } else if ( options.active === false ) {
this._activate( 0 );
// was active, but active panel is gone
} else if ( this.active.length && !$.contains( this.element[ 0 ], this.active[ 0 ] ) ) {