[Lada-commits] [PATCH] Fixed an issue concerning the selection of status

Wald Commits scm-commit at wald.intevation.org
Fri Feb 12 17:23:28 CET 2016


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1455294201 -3600
# Node ID 859e2e9859cda256b07505215d8ee3ab52f681c8
# Parent  3608842654719e71eb213c1ae00ab70e4c052022
Fixed an issue concerning the selection of status

diff -r 360884265471 -r 859e2e9859cd app/controller/grid/Status.js
--- 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', {
diff -r 360884265471 -r 859e2e9859cd app/view/grid/Status.js
--- 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
         }, {
diff -r 360884265471 -r 859e2e9859cd app/view/window/MessungCreate.js
--- 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;
+     }
 });


More information about the Lada-commits mailing list