comparison 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
comparison
equal deleted inserted replaced
1015:af9879d72310 1016:d6e259e76de6
40 * the function alters the store which was loaded by the 40 * the function alters the store which was loaded by the
41 * filterpanels combobox, 41 * filterpanels combobox,
42 */ 42 */
43 switchModes: function(field) { 43 switchModes: function(field) {
44 var cbox = field.up('modeswitcher').up().down('combobox'); 44 var cbox = field.up('modeswitcher').up().down('combobox');
45 filters = field.up('panel[name=main]').down('fieldset[name=filtervariables]'); 45 var filterValues = field.up('panel[name=main]').down('panel[name=filtervalues]');
46 filters.removeAll(); 46 var filters = field.up('panel[name=main]').down('panel[name=filtervariables]');
47 filterValues.removeAll();
47 filters.hide(); 48 filters.hide();
48 49
49 var filterController = this.getController('Lada.controller.Filter'); 50 var filterController = this.getController('Lada.controller.Filter');
50 filterController.mode = field.inputValue; 51 filterController.mode = field.inputValue;
51 filterController.updateFilter(cbox); 52 filterController.updateFilter(cbox);

http://lada.wald.intevation.org