# HG changeset patch # User Sylvain Thénault # Date 1373297890 -7200 # Node ID 5ca6e0ab0227c67fa79b636914fcf2c0f2aaf057 # Parent bc6e25dbfd04280a24f5c2b5d62c0d7e084f3879 [facet] use facet name as input name for text widget (eg has_text) we need to ba able to distinguish between text-inputs so we can write a widget for a single facet that uses more than one text input. This fix consists in the diff in cubicweb.facts.js; modifications in facet.py result from this former. diff -r bc6e25dbfd04 -r 5ca6e0ab0227 web/data/cubicweb.facets.js --- a/web/data/cubicweb.facets.js Tue Jul 02 09:36:20 2013 +0200 +++ b/web/data/cubicweb.facets.js Mon Jul 08 17:38:10 2013 +0200 @@ -30,7 +30,7 @@ }); // FacetStringWidget (e.g. has-text) $(this).find('input:text').each(function(){ - names.push(facetName); + names.push(this.name); values.push(this.value); }); }); diff -r bc6e25dbfd04 -r 5ca6e0ab0227 web/facet.py --- a/web/facet.py Tue Jul 02 09:36:20 2013 +0200 +++ b/web/facet.py Mon Jul 08 17:38:10 2013 +0200 @@ -1517,7 +1517,8 @@ cssclass += ' hideFacetBody' w(u'
%s
\n' % (cssclass, xml_escape(self.facet.__regid__), title)) - w(u'\n' % (facetid, self.value or u'')) + w(u'\n' % ( + xml_escape(self.facet.__regid__), self.value or u'')) w(u'\n')