include cubicbeb.facet.css when displaying filterbox
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Wed, 10 Dec 2008 10:38:23 +0100
changeset 204 4b01608c5397
parent 203 60cd67acf7fd
child 205 8ea3294e7427
include cubicbeb.facet.css when displaying filterbox
web/views/facets.py
--- a/web/views/facets.py	Wed Dec 10 10:37:54 2008 +0100
+++ b/web/views/facets.py	Wed Dec 10 10:38:23 2008 +0100
@@ -54,6 +54,8 @@
     def call(self, view=None):
         req = self.req
         req.add_js( ('cubicweb.ajax.js', 'cubicweb.formfilter.js') )
+        req.add_css('cubicweb.facets.css')
+        req.html_headers.add_onload('jQuery(".facet").corner("tl br 10px");')
         rset, vid, divid, paginate=self._get_context(view)
         if rset.rowcount < 2: # XXX done by selectors, though maybe necessary when rset has been hijacked
             return