[Lada-commits] [PATCH 2 of 3] Cancel search if no filter is selected
Wald Commits
scm-commit at wald.intevation.org
Wed Feb 17 14:25:50 CET 2016
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1455715453 -3600
# Node ID f4bd170f8ee61fd9a61c6d19202c7160997dc18e
# Parent e3ca9f7d8a4f14420e9dc7166f110ac5f7623227
Cancel search if no filter is selected.
diff -r e3ca9f7d8a4f -r f4bd170f8ee6 app/controller/Filter.js
--- 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');
More information about the Lada-commits
mailing list