comparison 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
comparison
equal deleted inserted replaced
712:baef70abfe71 713:2e478b3a587a
115 }]; 115 }];
116 this.callParent(arguments); 116 this.callParent(arguments);
117 }, 117 },
118 118
119 initData: function() { 119 initData: function() {
120 this.setLoading(true);
120 this.clearMessages(); 121 this.clearMessages();
121 me = this; 122 me = this;
122 Ext.ClassManager.get('Lada.model.Probe').load(this.record.get('id'), { 123 Ext.ClassManager.get('Lada.model.Probe').load(this.record.get('id'), {
123 failure: function(record, action) { 124 failure: function(record, action) {
125 me.setLoading(false);
124 // TODO 126 // TODO
125 console.log('An unhandled Failure occured. See following Response and Record'); 127 console.log('An unhandled Failure occured. See following Response and Record');
126 console.log(action); 128 console.log(action);
127 console.log(record); 129 console.log(record);
128 }, 130 },
147 } 149 }
148 else { 150 else {
149 this.down('probeform').setReadOnly(false); 151 this.down('probeform').setReadOnly(false);
150 this.enableChildren(); 152 this.enableChildren();
151 } 153 }
154 me.setLoading(false);
152 }, 155 },
153 scope: this 156 scope: this
154 }); 157 });
155 }, 158 },
156 159

http://lada.wald.intevation.org