changeset 844:1449d58d6f58

Clear the text filter correctly.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 07 Jul 2015 13:01:35 +0200
parents 05124d559e59
children 613ad3263e59 af9d506b0700
files app/controller/Filter.js
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Filter.js	Tue Jul 07 09:57:20 2015 +0200
+++ b/app/controller/Filter.js	Tue Jul 07 13:01:35 2015 +0200
@@ -252,7 +252,12 @@
         var filters = element.up('panel[name=main]').down('fieldset[name=filtervariables]');
         for (var i = filters.items.length - 1; i >= 0; i--) {
             var filter = filters.items.items[i];
-            filter.clearValue();
+            if (filter.clearValue) {
+                filter.clearValue();
+            }
+            else {
+                filter.setValue('');
+            }
         }
     },
     /**

http://lada.wald.intevation.org