Skip to content

Commit

Permalink
ENHANCEMENT: Close filter panel(Track#7210)
Browse files Browse the repository at this point in the history
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
adrexia committed Apr 30, 2012
1 parent 3ccaa1f commit af5bd4d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin/javascript/LeftAndMain.Panel.js
Expand Up @@ -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();
},
Expand Down

0 comments on commit af5bd4d

Please sign in to comment.