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