[Lada-commits] [PATCH] Issue55: Show "Ja"/"Nein" for Fertig-Flag in Overview

Wald Commits scm-commit at wald.intevation.org
Mon Dec 16 16:21:59 CET 2013


# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1387202021 -3600
# Node ID 7e73478780fee13ce801e5dd6cd37b4c37ee8456
# Parent  edb9dee114f882aa6d910758f5028b5cc752e7ba
Issue55: Show "Ja"/"Nein" for Fertig-Flag in Overview.

diff -r edb9dee114f8 -r 7e73478780fe app/view/messungen/List.js
--- a/app/view/messungen/List.js	Fri Dec 13 12:42:30 2013 +0100
+++ b/app/view/messungen/List.js	Mon Dec 16 14:53:41 2013 +0100
@@ -57,7 +57,17 @@
                     }
                 }
             },
-            {header: 'OK-Flag', dataIndex: "fertig"},
+            {
+                header: 'OK-Flag',
+                dataIndex: "fertig",
+                renderer: function(value) {
+                    if (value) {
+                        return "Ja";
+                    } else {
+                        return "Nein";
+                    }
+                }
+             },
             {
                 header: 'Anzahl Nuklide',
                 dataIndex: 'id',


More information about the Lada-commits mailing list