diff app/view/grid/Status.js @ 799:ad24af3fcf89

created StatusWerte Store to correctly display textual representation of a Status in a MessungenGrid
author Dustin Demuth <dustin@intevation.de>
date Thu, 21 May 2015 15:54:25 +0200
parents 9ab7b1eed9f8
children fab0b7be5aca
line wrap: on
line diff
--- a/app/view/grid/Status.js	Thu May 21 15:23:49 2015 +0200
+++ b/app/view/grid/Status.js	Thu May 21 15:54:25 2015 +0200
@@ -44,20 +44,7 @@
          });
         this.plugins = [this.rowEditing];
 
-        var statusStore = Ext.create('Ext.data.Store', {
-            fields: ['display', 'id'],
-            data: [{
-                display: 'unbekannt', id: 0
-            }, {
-                display: 'nicht vergeben', id: 1
-            }, {
-                display: 'plausibel', id: 2
-            }, {
-                display: 'nicht repräsentativ', id: 3
-            }, {
-                display: 'nicht plausibel', id: 4
-            }]
-        });
+        var statusStore = Ext.create('Lada.store.StatusWerte');
         this.dockedItems = [{
             xtype: 'toolbar',
             dock: 'bottom',

http://lada.wald.intevation.org