mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #383 from adrexia/7210-close-filter-panel-default
ENHANCEMENT: Close filter panel(Track#7210)
This commit is contained in:
commit
befc80676d
@ -56,7 +56,13 @@
|
||||
if(typeof cookieCollapsed != 'undefined' && cookieCollapsed != null) collapsed = (cookieCollapsed == 'true');
|
||||
}
|
||||
if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
|
||||
this.togglePanel(!collapsed, true);
|
||||
|
||||
//Set the filter to be closed
|
||||
if (this.hasClass('filter')) {
|
||||
this.togglePanel(collapsed, true);
|
||||
} else {
|
||||
this.togglePanel(!collapsed, true);
|
||||
}
|
||||
|
||||
this._super();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user