Mercurial > lada > lada-client
comparison app/view/messwerte/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 | c1b77fb96b01 |
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 Messwerte | 10 * Grid to list Messwerte |
11 */ | 11 */ |
12 Ext.define('Lada.view.messwerte.List' ,{ | 12 Ext.define('Lada.view.messwerte.List', { |
13 extend: 'Ext.grid.Panel', | 13 extend: 'Ext.grid.Panel', |
14 require: ['Lada.store.StaMesseinheit'], | 14 require: ['Lada.store.StaMesseinheit'], |
15 alias: 'widget.messwertelist', | 15 alias: 'widget.messwertelist', |
16 | 16 |
17 store: 'Messwerte', | 17 store: 'Messwerte', |
71 header: 'Grenzwertüberschreitung', | 71 header: 'Grenzwertüberschreitung', |
72 dataIndex: 'grenzwertueberschreitung', | 72 dataIndex: 'grenzwertueberschreitung', |
73 flex: 1, | 73 flex: 1, |
74 renderer: function(value) { | 74 renderer: function(value) { |
75 if (value === true) { | 75 if (value === true) { |
76 return "Ja"; | 76 return 'Ja'; |
77 } else { | |
78 return "Nein"; | |
79 } | 77 } |
78 return 'Nein'; | |
80 } | 79 } |
81 }]; | 80 }]; |
82 this.callParent(arguments); | 81 this.callParent(arguments); |
83 } | 82 } |
84 }); | 83 }); |
85 |