diff app/controller/ModeSwitcher.js @ 1016:d6e259e76de6

Updated filter value handling. * Save and reset buttons for values * Reload and update query stores * set correct values on reset.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 02 Feb 2016 15:26:43 +0100
parents af9879d72310
children
line wrap: on
line diff
--- a/app/controller/ModeSwitcher.js	Tue Feb 02 15:25:16 2016 +0100
+++ b/app/controller/ModeSwitcher.js	Tue Feb 02 15:26:43 2016 +0100
@@ -42,8 +42,9 @@
      */
     switchModes: function(field) {
         var cbox = field.up('modeswitcher').up().down('combobox');
-        filters = field.up('panel[name=main]').down('fieldset[name=filtervariables]');
-        filters.removeAll();
+        var filterValues = field.up('panel[name=main]').down('panel[name=filtervalues]');
+        var filters = field.up('panel[name=main]').down('panel[name=filtervariables]');
+        filterValues.removeAll();
         filters.hide();
 
         var filterController = this.getController('Lada.controller.Filter');

http://lada.wald.intevation.org