Permalink
Browse files

ENHANCEMENT: Close filter panel(Track#7210)

Make the filter panel closed every time unless explicitly opened. This
commit is dependent on a commit to the CMS that adds a class to the
template.
  • Loading branch information...
1 parent 3ccaa1f commit af5bd4d750cce8d860f6cc1c71cc99814ae40fdf @adrexia adrexia committed Apr 30, 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 af5bd4d

Please sign in to comment.