Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: SSF-107, Filter bar should be collapsed by default, this fix …

…works with fix of cms repo commit eec833215dcaa7a4510f7b4724413a39160d1ad7 (see gist https://gist.github.com/1720221)

MINOR: correct in-line document
  • Loading branch information...
commit deee8a294a76c460ea7fdab58750237d3cf844c7 1 parent 586ae4a
@normann normann authored chillu committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 admin/javascript/LeftAndMain.Panel.js
View
4 admin/javascript/LeftAndMain.Panel.js
@@ -6,7 +6,7 @@
$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
/**
- * Vertically collapsible panel. Generic enough to work with CMS menu as well as various "filter" panels.
+ * Hoizontal collapsible panel. Generic enough to work with CMS menu as well as various "filter" panels.
*
* A panel consists of the following parts:
* - Container div: The outer element, with class ".cms-panel"
@@ -53,7 +53,7 @@
var collapsed, cookieCollapsed;
if($.cookie && this.attr('id')) {
cookieCollapsed = $.cookie('cms-panel-collapsed-' + this.attr('id'));
- if(typeof cookieCollapsed != 'undefined') collapsed = (cookieCollapsed == 'true');
+ if(typeof cookieCollapsed != 'undefined' && cookieCollapsed != null) collapsed = (cookieCollapsed == 'true');
}
if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
this.togglePanel(!collapsed);
Please sign in to comment.
Something went wrong with that request. Please try again.