Mercurial > lada > lada-client
changeset 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 (2013-12-03) |
parents | 60763d913203 |
children | 0ab89a3b9090 |
files | app/view/messwerte/List.js |
diffstat | 1 files changed, 2 insertions(+), 24 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/messwerte/List.js Tue Dec 03 11:21:08 2013 +0100 +++ b/app/view/messwerte/List.js Tue Dec 03 11:23:15 2013 +0100 @@ -39,33 +39,11 @@ 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 ""; - } - } + dataIndex: 'messwertNwg' }, { header: 'Messwert', - 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 nwg; - } else { - return value; - } - } + dataIndex: 'messwert' }, {header: 'Messfehler', dataIndex: 'messfehler'}, {