fix sector_id bug in FF, it is beyond me how this could work at all before, but hey ... I guess JS is a non-deterministic programming language

pull/6827/head
Markus Kahl 13 years ago
parent 58313287e2
commit 397f7e1ffd
  1. 2
      assets/javascripts/reporting/filters.js

@ -30,7 +30,6 @@ Reporting.Filters = {
}, },
onComplete: function (a, b) { onComplete: function (a, b) {
$$("select[data-filter-name='" + filter_name + "']").each(function (e) { e.enable(); }); $$("select[data-filter-name='" + filter_name + "']").each(function (e) { e.enable(); });
callback_func();
if (select.tagName.toLowerCase() === "select") { if (select.tagName.toLowerCase() === "select") {
if (post_select_values === undefined || post_select_values === null || post_select_values.size() === 0) { if (post_select_values === undefined || post_select_values === null || post_select_values.size() === 0) {
select.selectedIndex = 0; select.selectedIndex = 0;
@ -38,6 +37,7 @@ Reporting.Filters = {
Reporting.Filters.select_values(select, post_select_values); Reporting.Filters.select_values(select, post_select_values);
} }
} }
callback_func();
} }
}); });
Reporting.Filters.multi_select(select, false); Reporting.Filters.multi_select(select, false);

Loading…
Cancel
Save