--- 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'<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')