# HG changeset patch # User Sylvain Thénault # Date 1364979075 -7200 # Node ID 6ed22ac7257c7d396d6ccd5af0d8778d5db9d2bc # Parent 51fdbbbd07b29d1aebafeda507cb499d5f047dce [facet] ensure a facet DOM id is a valid jQuery identifier. Closes #2789089 diff -r 51fdbbbd07b2 -r 6ed22ac7257c web/facet.py --- a/web/facet.py Mon Feb 04 14:39:55 2013 +0100 +++ b/web/facet.py Wed Apr 03 10:51:15 2013 +0200 @@ -65,7 +65,7 @@ from cubicweb import Unauthorized, typed_eid from cubicweb.schema import display_name -from cubicweb.uilib import css_em_num_value +from cubicweb.uilib import css_em_num_value, domid from cubicweb.utils import make_uid from cubicweb.predicates import match_context_prop, partial_relation_possible from cubicweb.appobject import AppObject @@ -1449,7 +1449,7 @@ def _render(self): w = self.w title = xml_escape(self.facet.title) - facetid = make_uid(self.facet.__regid__) + facetid = domid(make_uid(self.facet.__regid__)) w(u'
\n' % facetid) cssclass = 'facetTitle' if self.facet.allow_hide: