comparison app/view/window/GenProbenFromMessprogramm.js @ 1208:1179a6358213

Tell the user something is happening.
author Tom Gottfried <tom@intevation.de>
date Fri, 30 Sep 2016 19:21:51 +0200
parents 613e48a3fef9
children 78805e951c37
comparison
equal deleted inserted replaced
1207:05c8bd380fd5 1208:1179a6358213
50 scope: this, 50 scope: this,
51 handler: this.close 51 handler: this.close
52 }, { 52 }, {
53 text: i18n.getMsg('generateproben'), 53 text: i18n.getMsg('generateproben'),
54 handler: function() { 54 handler: function() {
55 me.setLoading(true);
55 var startDate = new Date(me.down('datefield[name=start]').getValue()); 56 var startDate = new Date(me.down('datefield[name=start]').getValue());
56 var startUTC = Date.UTC( 57 var startUTC = Date.UTC(
57 startDate.getFullYear(), startDate.getMonth(), startDate.getDate()); 58 startDate.getFullYear(), startDate.getMonth(), startDate.getDate());
58 var endDate = new Date(me.down('datefield[name=end]').getValue()); 59 var endDate = new Date(me.down('datefield[name=end]').getValue());
59 var endUTC = Date.UTC( 60 var endUTC = Date.UTC(
290 291
291 /** 292 /**
292 * Callback on failure of request (HTTP status != 200) 293 * Callback on failure of request (HTTP status != 200)
293 */ 294 */
294 onFailure: function(response) { 295 onFailure: function(response) {
296 me.setLoading(false);
297
295 var i18n = Lada.getApplication().bundle; 298 var i18n = Lada.getApplication().bundle;
296 299
297 var json = null; 300 var json = null;
298 try { 301 try {
299 json = Ext.JSON.decode(response.responseText); 302 json = Ext.JSON.decode(response.responseText);

http://lada.wald.intevation.org