diff app/controller/Filter.js @ 844:1449d58d6f58

Clear the text filter correctly.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 07 Jul 2015 13:01:35 +0200
parents a5373ee662e2
children 031b4431b1b8
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