[Lada-commits] [PATCH 2 of 2] change time range format in GenProbenFromMessprogramm

Wald Commits scm-commit at wald.intevation.org
Wed May 11 11:47:49 CEST 2016


# HG changeset patch
# User Michael Stanko <mstanko at bfs.de>
# Date 1462949965 -7200
# Node ID 953b359748bba0aff5ac86787d37ca5732625fc2
# Parent  414f7c9908d67f89396ac9b41d6b937ef8f10793
change time range format in GenProbenFromMessprogramm

diff -r 414f7c9908d6 -r 953b359748bb app/view/window/GenProbenFromMessprogramm.js
--- a/app/view/window/GenProbenFromMessprogramm.js	Wed May 11 08:57:40 2016 +0200
+++ b/app/view/window/GenProbenFromMessprogramm.js	Wed May 11 08:59:25 2016 +0200
@@ -50,8 +50,8 @@
             handler: function() {
                 var jsondata = {
                     id: me.record.id,
-                    start: new Date(me.down('datetime [name=start]').getValue()).valueOf(),
-                    end: new Date(me.down('datetime [name=end]').getValue()).valueOf()
+                    start: new Date(me.down('datefield [name=start]').getValue()).valueOf(),
+                    end: new Date(me.down('datefield [name=end]').getValue()).valueOf()
                 };
 
 
@@ -153,22 +153,22 @@
                 layout: 'fit',
                 html: '<p>' + i18n.getMsg('messprogtimeperiod') + '</p>'
             }, {
-                xtype: 'datetime',
+                xtype: 'datefield',
                 fieldLabel: i18n.getMsg('from'),
                 labelWidth: 90,
                 margin: 5,
-                width: 300,
+                width: 200,
                 name: 'start',
-                format: 'd.m.Y H:i',
+                format: 'd.m.Y',
                 period: 'start'
             }, {
-                xtype: 'datetime',
+                xtype: 'datefield',
                 fieldLabel: i18n.getMsg('to'),
                 labelWidth: 90,
                 margin: 5,
-                width: 300,
+                width: 200,
                 name: 'end',
-                format: 'd.m.Y H:i',
+                format: 'd.m.Y',
                 period: 'end'
             }]
         }];


More information about the Lada-commits mailing list