--- a/web/facet.py Wed Jul 30 22:26:18 2014 +0200
+++ b/web/facet.py Mon Dec 01 11:13:10 2014 +0100
@@ -1620,7 +1620,10 @@
cssclass += ' hideFacetBody'
w(u'<div class="%s" cubicweb:facetName="%s">%s</div>\n' %
(cssclass, xml_escape(self.facet.__regid__), title))
- w(u'<div class="facetBody">\n')
+ cssclass = 'facetBody'
+ if not self.facet.start_unfolded:
+ cssclass += ' hidden'
+ w(u'<div class="%s">\n' % cssclass)
w(u'<input name="%s" type="text" value="%s" />\n' % (
xml_escape(self.facet.__regid__), self.value or u''))
w(u'</div>\n')