Permalink
Browse files

MINOR Reverting panel collapse changes for filters (see pull requests #…

  • Loading branch information...
chillu committed May 1, 2012
1 parent 390d3d3 commit b428fa1548c4eaae3d83606bbf1b1ad5d1c81154
Showing with 4 additions and 8 deletions.
  1. +4 −8 admin/javascript/LeftAndMain.Panel.js
@@ -55,14 +55,10 @@
cookieCollapsed = $.cookie('cms-panel-collapsed-' + this.attr('id'));
if(typeof cookieCollapsed != 'undefined' && cookieCollapsed != null) collapsed = (cookieCollapsed == 'true');
}
-
- //Set the filter to be closed
- if (this.hasClass('filter')) {
- this.togglePanel(false, true);
- } else {
- if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
- this.togglePanel(!collapsed, true);
- }
+ if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
+
+ // Toggle visibility
+ this.togglePanel(!collapsed, true);
this._super();
},

0 comments on commit b428fa1

Please sign in to comment.