changeset 439:1fc4407c6c83 0.9

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 02 Dec 2013 15:02:53 +0100 (2013-12-02)
parents 90a09317f8d1 (current diff) 3ed0ab0f5ee5 (diff)
children d900db3e9be9
files
diffstat 1 files changed, 16 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: '&lt;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;
                     }

http://lada.wald.intevation.org