[Lada-commits] [PATCH 3 of 3] remove and hide filters when switching between modes
Wald Commits
scm-commit at wald.intevation.org
Tue Apr 28 16:55:02 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1430232865 -7200
# Node ID 639e82e2089e8c1743cf1205d524c98c0d4b5fdc
# Parent 704bb359c0fe30db36bdbc609a3e073524c5ba91
remove and hide filters when switching between modes
diff -r 704bb359c0fe -r 639e82e2089e app/controller/Filter.js
--- a/app/controller/Filter.js Tue Apr 28 16:03:59 2015 +0200
+++ b/app/controller/Filter.js Tue Apr 28 16:54:25 2015 +0200
@@ -203,7 +203,7 @@
searchParams[filter.getName()] = value;
}
// Retrieve the mode
- var modes = element.up('panel[name=main]').down('probenplanungswitcher').getChecked();
+ var modes = element.up('panel[name=main]').down('radiogroup').getChecked();
var sname = modes[0].inputValue;
if (sname === 'ProbenList') {
diff -r 704bb359c0fe -r 639e82e2089e app/controller/ProbenPlanungSwitcher.js
--- a/app/controller/ProbenPlanungSwitcher.js Tue Apr 28 16:03:59 2015 +0200
+++ b/app/controller/ProbenPlanungSwitcher.js Tue Apr 28 16:54:25 2015 +0200
@@ -41,7 +41,9 @@
switchStores: function(field) {
var cbox = field.up('probenplanungswitcher').up().down('combobox');
var resultGrid = field.up('panel[name=main]').down('filterresultgrid');
-
+ filters = field.up('panel[name=main]').down('fieldset[name=filtervariables]');
+ filters.removeAll();
+ filters.hide();
var sname = 'Lada.store.ProbeQueries';
if (field.inputValue === 'MessprogrammeList' && cbox) {
sname = 'Lada.store.MessprogrammQueries';
More information about the Lada-commits
mailing list