# HG changeset patch # User RĂ©mi Cardona # Date 1413802204 -7200 # Node ID e19c322ede4b464234f0ae26efd20ee391a3fc86 # Parent 832a2a0b7bd2f41b0bed03d356edf50ab0c2b8fc [facets] Honor 'start_unfolded' facet attribute (closes #4502799) diff -r 832a2a0b7bd2 -r e19c322ede4b web/facet.py --- a/web/facet.py Mon Oct 20 12:23:13 2014 +0200 +++ b/web/facet.py Mon Oct 20 12:50:04 2014 +0200 @@ -1620,7 +1620,10 @@ cssclass += ' hideFacetBody' w(u'
%s
\n' % (cssclass, xml_escape(self.facet.__regid__), title)) - w(u'
\n') + cssclass = 'facetBody' + if not self.facet.start_unfolded: + cssclass += ' hidden' + w(u'
\n' % cssclass) w(u'\n' % ( xml_escape(self.facet.__regid__), self.value or u'')) w(u'
\n')