Ejemplo n.º 1
0
  onClick: function (e) {
    var current,
      tagValue;

    if (e) {
      e.preventDefault();
    }

    current = this.props.category;

    FilterTagsActions.removeCategory('cat');
    // Generate tagValue on server instead
    tagValue = FilterTagStore.generateTagValue('cat__category', current.name, 'Category', current.name);

    if (this.isActive(current)) {
      FilterTagsActions.removeTag(tagValue.category, tagValue.value);
    } else {
      FilterTagsActions.addTag(tagValue);
    }

    SummaryStore.setCurrentActive(current.name);

    $('.child-rows.active').removeClass('active');
    $('#child-rows-' + current.id).addClass('active');
  },
Ejemplo n.º 2
0
 removeTag: function (category, item) {
   FilterTagsActions.removeTag(category, item.value, true);
   FilterTagsActions.removedTag(category, item);
 },