From e5b2722b8168ad648919ad119e2dc4ea8b1d993f Mon Sep 17 00:00:00 2001 From: Jannik Schönartz Date: Tue, 5 Dec 2017 16:45:50 +0100 Subject: [statistics] Fixed a bug where the filterbox kept the old dropdown entries --- modules-available/statistics/templates/filterbox.html | 1 + 1 file changed, 1 insertion(+) (limited to 'modules-available/statistics/templates/filterbox.html') diff --git a/modules-available/statistics/templates/filterbox.html b/modules-available/statistics/templates/filterbox.html index c2630ed9..31daabc6 100644 --- a/modules-available/statistics/templates/filterbox.html +++ b/modules-available/statistics/templates/filterbox.html @@ -170,6 +170,7 @@ document.addEventListener("DOMContentLoaded", function () { $('#argumentInput').datepicker({format : 'yyyy-mm-dd'}); $('#argumentSelect').hide(); } else if(columns[col]['type'] == 'enum') { + $('#argumentSelect').empty(); $('#argumentInput').hide(); $('#argumentSelect').show(); columns[col]['values'].forEach(function (v) { -- cgit v1.2.3-55-g7522