Mercurial > lada > lada-client
comparison app/view/grid/Messung.js @ 955:b401846e7817
using callback differently for statuswerte
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 09 Nov 2015 12:53:36 +0100 |
parents | c7bf0b459074 |
children | 6a6f2c6fe8ee |
comparison
equal
deleted
inserted
replaced
954:1856b6b3b8d4 | 955:b401846e7817 |
---|---|
221 var val = 'error'; | 221 var val = 'error'; |
222 sta.load({ | 222 sta.load({ |
223 scope: this, | 223 scope: this, |
224 callback: function(records, operation, success) { | 224 callback: function(records, operation, success) { |
225 if (success) { | 225 if (success) { |
226 try { | 226 val = sta.getById(value).get('wert'); |
227 val = sta.getById(value).get('wert'); | |
228 } | |
229 catch (e) { | |
230 } | |
231 } | 227 } |
232 Ext.fly(opts.divId).update(val); | 228 Ext.fly(opts.divId).update(val); |
233 } | 229 } |
234 }); | 230 }); |
235 } | 231 } |