From 397f7e1ffd3dcad3458416e8449a83a1a3701afe Mon Sep 17 00:00:00 2001 From: Markus Kahl Date: Wed, 21 Sep 2011 12:24:30 +0200 Subject: [PATCH] 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 --- assets/javascripts/reporting/filters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/reporting/filters.js b/assets/javascripts/reporting/filters.js index b754a42831..0b9f1a8b30 100644 --- a/assets/javascripts/reporting/filters.js +++ b/assets/javascripts/reporting/filters.js @@ -30,7 +30,6 @@ Reporting.Filters = { }, onComplete: function (a, b) { $$("select[data-filter-name='" + filter_name + "']").each(function (e) { e.enable(); }); - callback_func(); if (select.tagName.toLowerCase() === "select") { if (post_select_values === undefined || post_select_values === null || post_select_values.size() === 0) { select.selectedIndex = 0; @@ -38,6 +37,7 @@ Reporting.Filters = { Reporting.Filters.select_values(select, post_select_values); } } + callback_func(); } }); Reporting.Filters.multi_select(select, false);