diff app/view/ModeSwitcher.js @ 1077:2a5d42045c63

Display Messungen query mode and use the new messung list grid.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 08 Apr 2016 19:33:46 +0200
parents 7f5219b8e1bf
children
line wrap: on
line diff
--- a/app/view/ModeSwitcher.js	Fri Apr 08 19:32:02 2016 +0200
+++ b/app/view/ModeSwitcher.js	Fri Apr 08 19:33:46 2016 +0200
@@ -23,7 +23,7 @@
     initComponent: function() {
         var i18n = Lada.getApplication().bundle;
         this.title = i18n.getMsg('modus');
-        this.items= [{
+        this.items = [{
             xtype: 'radiogroup',
             columns: 1,
             width: '100%',
@@ -34,27 +34,38 @@
                 inputValue: 'proben', //this determines the store
                     // which will be loaded by the controller,
                 checked: true,
-                handler: function(field, state){
+                handler: function(field, state) {
                     if (state === true) {
                         this.fireEvent('check', field);
                     }
                 }
-            },{
+            }, {
+                xtype: 'radiofield',
+                name: 'modeswitch',
+                boxLabel: i18n.getMsg('messungen'),
+                inputValue: 'messungen', //this determines the store
+                    // which will be loaded by the controller,
+                handler: function(field, state) {
+                    if (state === true) {
+                        this.fireEvent('check', field);
+                    }
+                }
+            }, {
                 xtype: 'radiofield',
                 name: 'modeswitch',
                 boxLabel: i18n.getMsg('messprogramme'),
                 inputValue: 'messprogramme',
-                handler: function(field, state){
+                handler: function(field, state) {
                     if (state === true) {
                         this.fireEvent('check', field);
                     }
                 }
-            },{
+            }, {
                 xtype: 'radiofield',
                 name: 'modeswitch',
                 boxLabel: i18n.getMsg('stammdaten'),
                 inputValue: 'stammdaten',
-                handler: function(field, state){
+                handler: function(field, state) {
                     if (state === true) {
                         this.fireEvent('check', field);
                     }

http://lada.wald.intevation.org