fixed alumni selection bug (selection not disabled)

pull/6827/head
Markus Kahl 13 years ago
parent 9f69422ab5
commit 60ee5b5bb7
  1. 6
      assets/javascripts/reporting/filters.js

@ -9,6 +9,7 @@ Reporting.Filters = {
radio_options = $$('.' + filter_name + '_radio_option input'); radio_options = $$('.' + filter_name + '_radio_option input');
if (radio_options && radio_options.size() !== 0) { if (radio_options && radio_options.size() !== 0) {
radio_options.first().checked = true; radio_options.first().checked = true;
callback_func();
} }
if (select === null || select === undefined) { if (select === null || select === undefined) {
return; return;
@ -307,7 +308,10 @@ Reporting.Filters = {
// Param: select [optional] - the select-box of the filter which should activate it's dependents // Param: select [optional] - the select-box of the filter which should activate it's dependents
activate_dependents: function (selectBox, callbackWhenFinished) { activate_dependents: function (selectBox, callbackWhenFinished) {
var all_dependents, next_dependents, dependent, active_filters, source; 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; selectBox = this;
} }
if (callbackWhenFinished === undefined) { if (callbackWhenFinished === undefined) {

Loading…
Cancel
Save