changeset 1027:859e2e9859cd

Fixed an issue concerning the selection of status
author Dustin Demuth <dustin@intevation.de>
date Fri, 12 Feb 2016 17:23:21 +0100
parents 360884265471
children e3ca9f7d8a4f
files app/controller/grid/Status.js app/view/grid/Status.js app/view/window/MessungCreate.js
diffstat 3 files changed, 35 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/grid/Status.js	Fri Feb 12 16:34:28 2016 +0100
+++ b/app/controller/grid/Status.js	Fri Feb 12 17:23:21 2016 +0100
@@ -129,9 +129,8 @@
 
             record.set('id', null);
             if (record.get('statusWert') === 0) {
-                record.set('statusWert', null);
+                record.set('statusWert', '');
             }
-
         } else {
             //create a new one
             var record = Ext.create('Lada.model.Status', {
--- a/app/view/grid/Status.js	Fri Feb 12 16:34:28 2016 +0100
+++ b/app/view/grid/Status.js	Fri Feb 12 17:23:21 2016 +0100
@@ -146,7 +146,8 @@
                 displayField: 'wert',
                 valueField: 'id',
                 allowBlank: false,
-                editable: false
+                editable: false,
+                forceSelection: true
             },
             sortable: false
         }, {
--- a/app/view/window/MessungCreate.js	Fri Feb 12 16:34:28 2016 +0100
+++ b/app/view/window/MessungCreate.js	Fri Feb 12 17:23:21 2016 +0100
@@ -115,5 +115,36 @@
     enableChildren: function(){
         //intentionally!
         return true;
-    }
+    },
+
+    /**
+     * Enable to reset the statusgrid
+     */
+     enableStatusReset: function() {
+        //intentionally!
+        return true;
+     },
+
+    /**
+     * Disable to reset the statusgrid
+     */
+     disableStatusReset: function() {
+        //intentionally!
+        return true;
+     },
+    /**
+     * Enable to edit the statusgrid
+     */
+     enableStatusEdit: function() {
+        //intentionally!
+        return true;
+     },
+
+    /**
+     * Disable to edit the statusgrid
+     */
+     disableStatusEdit: function() {
+        //intentionally!
+        return true;
+     }
 });

http://lada.wald.intevation.org