changeset 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 24b5684d74d7
children ea477f62a667
files app/view/grid/Messung.js
diffstat 1 files changed, 8 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/grid/Messung.js	Tue Nov 17 14:58:17 2015 +0100
+++ b/app/view/grid/Messung.js	Thu Nov 19 14:30:08 2015 +0100
@@ -201,11 +201,16 @@
 
     updateColumn: function(store, record, success, opts) {
         var value;
-        if (store.getTotalCount() === 0) {
-            value = 'Keine';
+        if (success) {
+            if (store.getTotalCount() === 0) {
+                value = 'Keine';
+            }
+            else {
+                value = store.getTotalCount();
+            }
         }
         else {
-            value = store.getTotalCount();
+            value = 'k.A.';
         }
         Ext.fly(opts.divId).update(value);
     },

http://lada.wald.intevation.org