changeset 1030:f4bd170f8ee6

Cancel search if no filter is selected.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 17 Feb 2016 14:24:13 +0100
parents e3ca9f7d8a4f
children 488fed1d2b98
files app/controller/Filter.js
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/Filter.js	Wed Feb 17 14:17:01 2016 +0100
+++ b/app/controller/Filter.js	Wed Feb 17 14:24:13 2016 +0100
@@ -294,6 +294,9 @@
         var filters = element.up('panel[name=main]').down('panel[name=filtervalues]');
         var search = element.up('fieldset').down('combobox[name=filter]');
 
+        if (!search.getValue()) {
+            return;
+        }
         //Type of the search Proben/Messprogramme/Stammdaten
         var type = search.store.getById(search.getValue()).get('type');
 

http://lada.wald.intevation.org