comparison app/view/zusatzwerte/List.js @ 497:7c0653e8d9f7

Fixed some js related issues (unused vars, arrays, etc.) and code style.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Nov 2014 10:38:17 +0100
parents d07e5086a64b
children 8b4ec61c5752
comparison
equal deleted inserted replaced
496:d07e5086a64b 497:7c0653e8d9f7
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz 1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz
2 * Software engineering by Intevation GmbH 2 * Software engineering by Intevation GmbH
3 * 3 *
4 * This file is Free Software under the GNU GPL (v>=3) 4 * This file is Free Software under the GNU GPL (v>=3)
5 * and comes with ABSOLUTELY NO WARRANTY! Check out 5 * and comes with ABSOLUTELY NO WARRANTY! Check out
6 * the documentation coming with IMIS-Labordaten-Application for details. 6 * the documentation coming with IMIS-Labordaten-Application for details.
7 */ 7 */
8 8
9 /* 9 /*
10 * Grid to list Probenzusatzwerte 10 * Grid to list Probenzusatzwerte
11 */ 11 */
12 Ext.define('Lada.view.zusatzwerte.List' ,{ 12 Ext.define('Lada.view.zusatzwerte.List', {
13 extend: 'Ext.grid.Panel', 13 extend: 'Ext.grid.Panel',
14 alias: 'widget.zusatzwertelist', 14 alias: 'widget.zusatzwertelist',
15 15
16 store: 'Zusatzwerte', 16 store: 'Zusatzwerte',
17 viewConfig: { 17 viewConfig: {
58 renderer: function(value) { 58 renderer: function(value) {
59 var store = Ext.getStore('Zusatzwerte'); 59 var store = Ext.getStore('Zusatzwerte');
60 var record = store.getById(value); 60 var record = store.getById(value);
61 var messwert = record.get('messwertPzs'); 61 var messwert = record.get('messwertPzs');
62 var nwg = record.get('nwgZuMesswert'); 62 var nwg = record.get('nwgZuMesswert');
63 if (messwert < nwg ) { 63 if (messwert < nwg) {
64 return "<"+messwert; 64 return '<' + messwert;
65 } else {
66 return messwert;
67 } 65 }
66 return messwert;
68 } 67 }
69 }, { 68 }, {
70 header: 'rel. Unsich.[%]', 69 header: 'rel. Unsich.[%]',
71 dataIndex: 'messfehler' 70 dataIndex: 'messfehler'
72 }, { 71 }, {

http://lada.wald.intevation.org