From deee8a294a76c460ea7fdab58750237d3cf844c7 Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Thu, 2 Feb 2012 12:52:52 +1300 Subject: [PATCH] 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 --- admin/javascript/LeftAndMain.Panel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/javascript/LeftAndMain.Panel.js b/admin/javascript/LeftAndMain.Panel.js index d5f8fdc86..b035879d6 100644 --- a/admin/javascript/LeftAndMain.Panel.js +++ b/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);