Permalink
Browse files

Merge pull request #383 from adrexia/7210-close-filter-panel-default

ENHANCEMENT: Close filter panel(Track#7210)
  • Loading branch information...
2 parents 0e9bdc1 + af5bd4d commit befc80676d67adcb7f7b430180cc014129404f08 @halkyon halkyon committed May 1, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 admin/javascript/LeftAndMain.Panel.js
@@ -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();
},

0 comments on commit befc806

Please sign in to comment.