changeset 944:1f1467713c3f

Status grid modified
author Michael Stanko <mstanko@bfs.de>
date Fri, 16 Oct 2015 08:15:36 +0200 (2015-10-16)
parents 0a233865a9c3
children 023e622f9551
files app/controller/grid/MKommentar.js app/controller/grid/Status.js app/view/grid/Status.js
diffstat 3 files changed, 9 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/grid/MKommentar.js	Wed Oct 14 11:40:25 2015 +0200
+++ b/app/controller/grid/MKommentar.js	Fri Oct 16 08:15:36 2015 +0200
@@ -40,8 +40,8 @@
      * On failure it displays a message
      */
     gridSave: function(editor, context) {
-    context.record.set('datum', new Date());
-    context.record.save({
+        context.record.set('datum', new Date());
+        context.record.save({
             success: function(record, response) {
                 context.grid.initData();
                 context.grid.up('window').initData();
--- a/app/controller/grid/Status.js	Wed Oct 14 11:40:25 2015 +0200
+++ b/app/controller/grid/Status.js	Fri Oct 16 08:15:36 2015 +0200
@@ -38,6 +38,7 @@
      * On failure it displays a message
      */
      gridSave: function(editor, context) {
+        context.record.set('sdatum', new Date());
         context.record.save({
             success: function() {
                 context.grid.initData();
--- a/app/view/grid/Status.js	Wed Oct 14 11:40:25 2015 +0200
+++ b/app/view/grid/Status.js	Fri Oct 16 08:15:36 2015 +0200
@@ -63,6 +63,12 @@
             }]
         }];
         this.columns = [{
+            header: 'erstellt',
+            dataIndex: 'sdatum',
+            xtype: 'datecolumn',
+            format: 'd.m.Y H:i',
+            width: 110,
+        }, {
             header: 'Erzeuger',
             dataIndex: 'erzeuger',
             renderer: function(value) {
@@ -98,17 +104,6 @@
                 editable: false
             }
         }, {
-            header: 'Datum',
-            dataIndex: 'sdatum',
-            xtype: 'datecolumn',
-            format: 'd.m.Y',
-            editor: {
-                xtype: 'datefield',
-                allowBlank: false,
-                format: 'd.m.Y',
-                maxValue: Ext.Date.format(new Date(), 'd.m.Y')
-            }
-        }, {
             header: 'Text',
             dataIndex: 'skommentar',
             flex: 1,

http://lada.wald.intevation.org