web/facet.py
changeset 10074 ab956b780d4e
parent 9990 c84ad981fc4a
parent 10030 e19c322ede4b
child 10307 4b8253fb3125
--- 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')