Mercurial > lada > lada-client
comparison app/view/grid/Messung.js @ 973:989736bf4ffb
Show different Message in a MessungGrid when it is not allowed to see the number of Nuclids for a Messung in Cases the status is not set
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 19 Nov 2015 14:30:08 +0100 |
parents | 6a6f2c6fe8ee |
children | fa04558f35cd |
comparison
equal
deleted
inserted
replaced
972:24b5684d74d7 | 973:989736bf4ffb |
---|---|
199 }); | 199 }); |
200 }, | 200 }, |
201 | 201 |
202 updateColumn: function(store, record, success, opts) { | 202 updateColumn: function(store, record, success, opts) { |
203 var value; | 203 var value; |
204 if (store.getTotalCount() === 0) { | 204 if (success) { |
205 value = 'Keine'; | 205 if (store.getTotalCount() === 0) { |
206 value = 'Keine'; | |
207 } | |
208 else { | |
209 value = store.getTotalCount(); | |
210 } | |
206 } | 211 } |
207 else { | 212 else { |
208 value = store.getTotalCount(); | 213 value = 'k.A.'; |
209 } | 214 } |
210 Ext.fly(opts.divId).update(value); | 215 Ext.fly(opts.divId).update(value); |
211 }, | 216 }, |
212 | 217 |
213 /** | 218 /** |