[Lada-commits] [PATCH] Status grid modified

Wald Commits scm-commit at wald.intevation.org
Fri Oct 16 08:15:44 CEST 2015


# HG changeset patch
# User Michael Stanko <mstanko at bfs.de>
# Date 1444976136 -7200
# Node ID 1f1467713c3f8a27a740e99e766dab0642f024ee
# Parent  0a233865a9c39a70867d749605dc2a4f83f8d9c6
Status grid modified

diff -r 0a233865a9c3 -r 1f1467713c3f app/controller/grid/MKommentar.js
--- 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();
diff -r 0a233865a9c3 -r 1f1467713c3f app/controller/grid/Status.js
--- 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();
diff -r 0a233865a9c3 -r 1f1467713c3f app/view/grid/Status.js
--- 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,


More information about the Lada-commits mailing list