diff app/view/grid/Status.js @ 1044:8e579acfe0b1

Set preselected messstelle in status editor.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 25 Feb 2016 10:39:17 +0100
parents 56922c5c21fd
children 6d06ae7c553c 4270da0f7d3b
line wrap: on
line diff
--- a/app/view/grid/Status.js	Thu Feb 25 10:38:13 2016 +0100
+++ b/app/view/grid/Status.js	Thu Feb 25 10:39:17 2016 +0100
@@ -104,13 +104,8 @@
                 displayField: 'messStelle',
                 valueField: 'id',
                 allowBlank: false,
-                editable: false,
-                afterRender: function() {
-                    this.superclass.afterRender.apply(this, arguments);
-                    if (this.store.count() === 1) {
-                        this.setValue(this.store.getAt(0));
-                    }
-                }
+                queryMode: 'local',
+                editable: false
             },
             sortable: false
         }, {

http://lada.wald.intevation.org