mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-04 07:08:34 +02:00
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
This commit is contained in:
parent
586ae4ab6e
commit
deee8a294a
@ -6,7 +6,7 @@
|
|||||||
$.entwine.warningLevel = $.entwine.WARN_LEVEL_BESTPRACTISE;
|
$.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:
|
* A panel consists of the following parts:
|
||||||
* - Container div: The outer element, with class ".cms-panel"
|
* - Container div: The outer element, with class ".cms-panel"
|
||||||
@ -53,7 +53,7 @@
|
|||||||
var collapsed, cookieCollapsed;
|
var collapsed, cookieCollapsed;
|
||||||
if($.cookie && this.attr('id')) {
|
if($.cookie && this.attr('id')) {
|
||||||
cookieCollapsed = $.cookie('cms-panel-collapsed-' + 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');
|
if(typeof collapsed == 'undefined') collapsed = jQuery(this).hasClass('collapsed');
|
||||||
this.togglePanel(!collapsed);
|
this.togglePanel(!collapsed);
|
||||||
|
Loading…
Reference in New Issue
Block a user