Mercurial > lada > lada-client
comparison app/view/widgets/Nwg.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 | 850ccfe5f3c4 |
children |
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 var nwgStore = Ext.create('Ext.data.Store', { | 9 var nwgStore = Ext.create('Ext.data.Store', { |
10 fields: ['nwgId', 'nwg'], | 10 fields: ['nwgId', 'nwg'], |
11 data: [ | 11 data: [{ |
12 {"nwgId":"", "nwg":">="}, | 12 'nwgId': '', |
13 {"nwgId":"<", "nwg":"<"} | 13 'nwg': '>=' |
14 ] | 14 }, { |
15 'nwgId': '<', | |
16 'nwg': '<' | |
17 }] | |
15 }); | 18 }); |
16 | 19 |
17 /** | 20 /** |
18 * Combobox for Nachweisgrenze. | 21 * Combobox for Nachweisgrenze. |
19 */ | 22 */ |
20 Ext.define('Lada.view.widgets.Nwg' ,{ | 23 Ext.define('Lada.view.widgets.Nwg', { |
21 extend: 'Ext.form.ComboBox', | 24 extend: 'Ext.form.ComboBox', |
22 editable: false, | 25 editable: false, |
23 alias: 'widget.nwg', | 26 alias: 'widget.nwg', |
24 store: nwgStore, | 27 store: nwgStore, |
25 queryMode: 'local', | 28 queryMode: 'local', |
26 displayField:'nwg', | 29 displayField: 'nwg', |
27 valueField: 'nwgId', | 30 valueField: 'nwgId', |
28 emptyText:'Messwert kleiner als Nachweisgrenze?', | 31 emptyText: 'Messwert kleiner als Nachweisgrenze?', |
29 | 32 |
30 initComponent: function() { | 33 initComponent: function() { |
31 this.callParent(arguments); | 34 this.callParent(arguments); |
32 } | 35 } |
33 }); | 36 }); |