[Lada-commits] [PATCH 2 of 2] merged

Wald Commits scm-commit at wald.intevation.org
Mon Dec 2 15:03:03 CET 2013


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1385992973 -3600
# Node ID 1fc4407c6c8372cb024e673c8ece3dd508b457e3
# Parent  90a09317f8d14dd13c8f19b57decc29fbfdf07af
# Parent  3ed0ab0f5ee51608ea68d4bd1503d71d8c41c444
merged.

diff -r 90a09317f8d1 -r 1fc4407c6c83 app/view/messwerte/List.js
--- a/app/view/messwerte/List.js	Mon Dec 02 15:02:17 2013 +0100
+++ b/app/view/messwerte/List.js	Mon Dec 02 15:02:53 2013 +0100
@@ -38,6 +38,21 @@
         ];
         this.columns = [
             {
+                header: '<NWG',
+                dataIndex: 'messwert',
+                renderer: function(value, row) {
+                    // the seconds argument here is not documented in JQuery
+                    // but it has the current rendererd row and this
+                    // referenced the record.
+                    var nwg = row.record.get('nwgZuMesswert');
+                    if (value < nwg) {
+                        return "<";
+                    } else {
+                        return "";
+                    }
+                }
+            },
+            {
                 header: 'Messwert',
                 dataIndex: 'messwert',
                 renderer: function(value, row) {
@@ -46,7 +61,7 @@
                     // referenced the record.
                     var nwg = row.record.get('nwgZuMesswert');
                     if (value < nwg) {
-                        return "<"+value;
+                        return nwg;
                     } else {
                         return value;
                     }


More information about the Lada-commits mailing list