comparison app/view/window/GenProbenFromMessprogramm.js @ 1105:953b359748bb

change time range format in GenProbenFromMessprogramm
author Michael Stanko <mstanko@bfs.de>
date Wed, 11 May 2016 08:59:25 +0200
parents f73ca04d73a7
children ea5774447e49
comparison
equal deleted inserted replaced
1104:414f7c9908d6 1105:953b359748bb
48 }, { 48 }, {
49 text: i18n.getMsg('generateproben'), 49 text: i18n.getMsg('generateproben'),
50 handler: function() { 50 handler: function() {
51 var jsondata = { 51 var jsondata = {
52 id: me.record.id, 52 id: me.record.id,
53 start: new Date(me.down('datetime [name=start]').getValue()).valueOf(), 53 start: new Date(me.down('datefield [name=start]').getValue()).valueOf(),
54 end: new Date(me.down('datetime [name=end]').getValue()).valueOf() 54 end: new Date(me.down('datefield [name=end]').getValue()).valueOf()
55 }; 55 };
56 56
57 57
58 Ext.Ajax.request({ 58 Ext.Ajax.request({
59 url: 'lada-server/rest/probe/messprogramm', 59 url: 'lada-server/rest/probe/messprogramm',
151 border: 0, 151 border: 0,
152 margin: 5, 152 margin: 5,
153 layout: 'fit', 153 layout: 'fit',
154 html: '<p>' + i18n.getMsg('messprogtimeperiod') + '</p>' 154 html: '<p>' + i18n.getMsg('messprogtimeperiod') + '</p>'
155 }, { 155 }, {
156 xtype: 'datetime', 156 xtype: 'datefield',
157 fieldLabel: i18n.getMsg('from'), 157 fieldLabel: i18n.getMsg('from'),
158 labelWidth: 90, 158 labelWidth: 90,
159 margin: 5, 159 margin: 5,
160 width: 300, 160 width: 200,
161 name: 'start', 161 name: 'start',
162 format: 'd.m.Y H:i', 162 format: 'd.m.Y',
163 period: 'start' 163 period: 'start'
164 }, { 164 }, {
165 xtype: 'datetime', 165 xtype: 'datefield',
166 fieldLabel: i18n.getMsg('to'), 166 fieldLabel: i18n.getMsg('to'),
167 labelWidth: 90, 167 labelWidth: 90,
168 margin: 5, 168 margin: 5,
169 width: 300, 169 width: 200,
170 name: 'end', 170 name: 'end',
171 format: 'd.m.Y H:i', 171 format: 'd.m.Y',
172 period: 'end' 172 period: 'end'
173 }] 173 }]
174 }]; 174 }];
175 this.callParent(arguments); 175 this.callParent(arguments);
176 }, 176 },

http://lada.wald.intevation.org