[Lada-commits] [PATCH] Tell the user something is happening
Wald Commits
scm-commit at wald.intevation.org
Fri Sep 30 19:31:12 CEST 2016
# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1475256111 -7200
# Node ID 1179a6358213d416ffc88906e1f75598e6df8f2f
# Parent 05c8bd380fd5dad8ed6a31753450a42242d624c9
Tell the user something is happening.
diff -r 05c8bd380fd5 -r 1179a6358213 app/view/window/GenProbenFromMessprogramm.js
--- 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;
More information about the Lada-commits
mailing list