Skip to content
This repository
Browse code

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

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

MINOR: correct in-line document
  • Loading branch information...
commit deee8a294a76c460ea7fdab58750237d3cf844c7 1 parent 586ae4a
Normann Lou authored February 02, 2012 chillu committed February 03, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  admin/javascript/LeftAndMain.Panel.js
4  admin/javascript/LeftAndMain.Panel.js
@@ -6,7 +6,7 @@
6 6
 		$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
7 7
 
8 8
 		/**
9  
-		 * Vertically collapsible panel. Generic enough to work with CMS menu as well as various "filter" panels.
  9
+		 * Hoizontal collapsible panel. Generic enough to work with CMS menu as well as various "filter" panels.
10 10
 		 * 
11 11
 		 * A panel consists of the following parts:
12 12
 		 * - Container div: The outer element, with class ".cms-panel"
@@ -53,7 +53,7 @@
53 53
 				var collapsed, cookieCollapsed;
54 54
 				if($.cookie && this.attr('id')) {
55 55
 					cookieCollapsed = $.cookie('cms-panel-collapsed-' + this.attr('id'));
56  
-					if(typeof cookieCollapsed != 'undefined') collapsed = (cookieCollapsed == 'true');
  56
+					if(typeof cookieCollapsed != 'undefined' && cookieCollapsed != null) collapsed = (cookieCollapsed == 'true');
57 57
 				} 
58 58
 				if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
59 59
 				this.togglePanel(!collapsed);

0 notes on commit deee8a2

Please sign in to comment.
Something went wrong with that request. Please try again.