mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fix logic error
This commit is contained in:
parent
af5bd4d750
commit
16fae77241
@ -55,12 +55,12 @@
|
||||
cookieCollapsed = $.cookie('cms-panel-collapsed-' + this.attr('id'));
|
||||
if(typeof cookieCollapsed != 'undefined' && cookieCollapsed != null) collapsed = (cookieCollapsed == 'true');
|
||||
}
|
||||
if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
|
||||
|
||||
//Set the filter to be closed
|
||||
if (this.hasClass('filter')) {
|
||||
this.togglePanel(collapsed, true);
|
||||
this.togglePanel(false, true);
|
||||
} else {
|
||||
if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
|
||||
this.togglePanel(!collapsed, true);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user