change dependents operator to any if the dependent was recently added

pull/6827/head
Philipp Tessenow 14 years ago
parent b1bdf1bb00
commit 015d094805
  1. 3
      assets/javascripts/reporting/filters.js

@ -152,6 +152,9 @@ Reporting.Filters = {
var active_filters = Reporting.Filters.visible_filters(); var active_filters = Reporting.Filters.visible_filters();
if (!active_filters.include(dependents.first())) { if (!active_filters.include(dependents.first())) {
Reporting.Filters.show_filter(dependents.first(), { slowly: true }); Reporting.Filters.show_filter(dependents.first(), { slowly: true });
// change operator to any-operator to avoid unintended filterin
$('operators[' + dependents.first() + ']').value = 'any';
Reporting.Filters.operator_changed(dependents.first(), $('operators[' + dependents.first() + ']'));
active_filters.unshift(dependents.first()); active_filters.unshift(dependents.first());
} }
var source = this.getAttribute("data-filter-name"); var source = this.getAttribute("data-filter-name");

Loading…
Cancel
Save