Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/window/GenProbenFromMessprogramm.js Fri Sep 30 18:43:30 2016 +0200 +++ b/app/view/window/GenProbenFromMessprogramm.js Fri Sep 30 19:21:51 2016 +0200 @@ -52,6 +52,7 @@ }, { text: i18n.getMsg('generateproben'), handler: function() { + me.setLoading(true); var startDate = new Date(me.down('datefield[name=start]').getValue()); var startUTC = Date.UTC( startDate.getFullYear(), startDate.getMonth(), startDate.getDate()); @@ -292,6 +293,8 @@ * Callback on failure of request (HTTP status != 200) */ onFailure: function(response) { + me.setLoading(false); + var i18n = Lada.getApplication().bundle; var json = null;