--- a/web/data/cubicweb.facets.js Fri Sep 04 16:13:04 2009 +0200
+++ b/web/data/cubicweb.facets.js Mon Sep 07 20:23:40 2009 +0200
@@ -130,9 +130,10 @@
});
facet.find('div.facetCheckBox').click(function () {
var $this = jQuery(this);
- if ($this.hasClass('facetValueDisabled')){
- return
- }
+ // NOTE : add test on the facet operator (i.e. OR, AND)
+ // if ($this.hasClass('facetValueDisabled')){
+ // return
+ // }
if ($this.hasClass('facetValueSelected')) {
$this.removeClass('facetValueSelected');
$this.find('img').each(function (i){
--- a/web/formwidgets.py Fri Sep 04 16:13:04 2009 +0200
+++ b/web/formwidgets.py Mon Sep 07 20:23:40 2009 +0200
@@ -430,8 +430,9 @@
# XXX entity form specific
entity = form.edited_entity
attrs['cubicweb:etype_to'] = entity.e_schema
- etype_from = entity.e_schema.subject_relation(self.name).objects(entity.e_schema)[0]
+ etype_from = entity.e_schema.subject_relation(field.name).objects(entity.e_schema)[0]
attrs['cubicweb:etype_from'] = etype_from
+ return name, values, attrs
def render(self, form, field, renderer):
return super(AddComboBoxWidget, self).render(form, field, renderer) + u'''