fix javascript dom selectors

pull/6827/head
Jens Ulferts 10 years ago
parent a57fd8f69d
commit 1034be8416
  1. 12
      lib/assets/javascripts/reporting_engine/reporting/filters.js

@ -239,16 +239,16 @@ Reporting.Filters = {
},
value_changed: function (field) {
var val, tr;
var val, filter;
val = $(field + '_arg_1_val');
tr = $('filter_' + field);
filter = $('filter_' + field);
if (!val) {
return;
}
if (val.value === '<<inactive>>') {
tr.addClassName('inactive-filter');
filter.addClassName('inactive-filter');
} else {
tr.removeClassName('inactive-filter');
filter.removeClassName('inactive-filter');
}
},
@ -294,8 +294,8 @@ Reporting.Filters = {
},
visible_filters: function () {
return $("filter_table").select("tr").select(function (tr) {
return tr.visible() === true;
return $("filter_table").select(".advanced-filters--filter").select(function (filter) {
return filter.visible() === true;
}).collect(function (filter) {
return filter.getAttribute("data-filter-name");
});

Loading…
Cancel
Save