From 60ee5b5bb7dd33fe7fb2749df9817cc709c8c84d Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Wed, 21 Sep 2011 18:07:37 +0200 Subject: [PATCH] fixed alumni selection bug (selection not disabled) --- assets/javascripts/reporting/filters.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index ac4d1ec4df..71ce527cbb 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -9,6 +9,7 @@ Reporting.Filters = { radio_options = $$('.' + filter_name + '_radio_option input'); if (radio_options && radio_options.size() !== 0) { radio_options.first().checked = true; + callback_func(); } if (select === null || select === undefined) { return; @@ -307,7 +308,10 @@ 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.type.toLowerCase() == 'change') { + if (selectBox !== undefined && selectBox.tagName.toLowerCase() !== "select") { + return; // only multi_value filters have dependents + } + if (selectBox === undefined || selectBox.type.toLowerCase() == 'change') { selectBox = this; } if (callbackWhenFinished === undefined) {