[Lada-commits] [PATCH] Clear the text filter correctly

Wald Commits scm-commit at wald.intevation.org
Tue Jul 7 13:01:42 CEST 2015


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1436266895 -7200
# Node ID 1449d58d6f58bff63bf1e89416b7f7b344f9f4fa
# Parent  05124d559e591f8487976d005f29e370e4bd76f4
Clear the text filter correctly.

diff -r 05124d559e59 -r 1449d58d6f58 app/controller/Filter.js
--- 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('');
+            }
         }
     },
     /**


More information about the Lada-commits mailing list