diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index 71ce527cbb..ddd7923552 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -308,12 +308,12 @@ Reporting.Filters = { // Param: select [optional] - the select-box of the filter which should activate it's dependents activate_dependents: function (selectBox, callbackWhenFinished) { var all_dependents, next_dependents, dependent, active_filters, source; - if (selectBox !== undefined && selectBox.tagName.toLowerCase() !== "select") { - return; // only multi_value filters have dependents - } if (selectBox === undefined || selectBox.type.toLowerCase() == 'change') { selectBox = this; } + if (selectBox.tagName.toLowerCase() !== "select") { + return; // only multi_value filters have dependents + } if (callbackWhenFinished === undefined) { callbackWhenFinished = function(dependent) { }; }