diff app/view/window/ProbeEdit.js @ 713:2e478b3a587a

Set some loading masks.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 08 Apr 2015 10:52:32 +0200
parents baef70abfe71
children dd6925ef6028
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Wed Apr 08 10:52:15 2015 +0200
+++ b/app/view/window/ProbeEdit.js	Wed Apr 08 10:52:32 2015 +0200
@@ -117,10 +117,12 @@
     },
 
     initData: function() {
+        this.setLoading(true);
         this.clearMessages();
         me = this;
         Ext.ClassManager.get('Lada.model.Probe').load(this.record.get('id'), {
             failure: function(record, action) {
+                me.setLoading(false);
                 // TODO
                 console.log('An unhandled Failure occured. See following Response and Record');
                 console.log(action);
@@ -149,6 +151,7 @@
                     this.down('probeform').setReadOnly(false);
                     this.enableChildren();
                 }
+                me.setLoading(false);
             },
             scope: this
         });

http://lada.wald.intevation.org