comparison app/view/messwerte/List.js @ 442:bba7fbcf2f70

Simplified logic in Messwert listing. No extra logic anymore to check if a "<" char is displayed in front of the measured value. Simply dislplay the value and value form messwertNwg.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 03 Dec 2013 11:23:15 +0100
parents 3ed0ab0f5ee5
children a122424f2f0f
comparison
equal deleted inserted replaced
441:60763d913203 442:bba7fbcf2f70
37 } 37 }
38 ]; 38 ];
39 this.columns = [ 39 this.columns = [
40 { 40 {
41 header: '&lt;NWG', 41 header: '&lt;NWG',
42 dataIndex: 'messwert', 42 dataIndex: 'messwertNwg'
43 renderer: function(value, row) {
44 // the seconds argument here is not documented in JQuery
45 // but it has the current rendererd row and this
46 // referenced the record.
47 var nwg = row.record.get('nwgZuMesswert');
48 if (value < nwg) {
49 return "<";
50 } else {
51 return "";
52 }
53 }
54 }, 43 },
55 { 44 {
56 header: 'Messwert', 45 header: 'Messwert',
57 dataIndex: 'messwert', 46 dataIndex: 'messwert'
58 renderer: function(value, row) {
59 // the seconds argument here is not documented in JQuery
60 // but it has the current rendererd row and this
61 // referenced the record.
62 var nwg = row.record.get('nwgZuMesswert');
63 if (value < nwg) {
64 return nwg;
65 } else {
66 return value;
67 }
68 }
69 }, 47 },
70 {header: 'Messfehler', dataIndex: 'messfehler'}, 48 {header: 'Messfehler', dataIndex: 'messfehler'},
71 { 49 {
72 header: 'Messgröße', 50 header: 'Messgröße',
73 dataIndex: 'messgroesseId', 51 dataIndex: 'messgroesseId',

http://lada.wald.intevation.org