[Lada-commits] [PATCH] 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

Wald Commits scm-commit at wald.intevation.org
Thu Nov 19 14:30:17 CET 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1447939808 -3600
# Node ID 989736bf4ffbb8762b9f995e2a556a96a36fba24
# Parent  24b5684d74d79ed3cead540a2b3a294e490f646f
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

diff -r 24b5684d74d7 -r 989736bf4ffb app/view/grid/Messung.js
--- 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);
     },


More information about the Lada-commits mailing list