Mercurial > lada > lada-client
annotate app/view/messungen/List.js @ 546:43951e42590c
Added tag mockup-1.1 for changeset 7c9475119861
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 18 Dec 2014 16:52:45 +0100 |
parents | 7c9475119861 |
children |
rev | line source |
---|---|
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
1 /* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
2 * Software engineering by Intevation GmbH |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
3 * |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
4 * This file is Free Software under the GNU GPL (v>=3) |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
5 * and comes with ABSOLUTELY NO WARRANTY! Check out |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
6 * the documentation coming with IMIS-Labordaten-Application for details. |
472
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
7 */ |
debfcc7713e3
Added license header to each file.
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
455
diff
changeset
|
8 |
343
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
172
diff
changeset
|
9 /* |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
172
diff
changeset
|
10 * Grid to list Messungen |
eccf58d3b106
Added documentation
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
172
diff
changeset
|
11 */ |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
12 Ext.define('Lada.view.messungen.List', { |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
13 extend: 'Ext.grid.Panel', |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
14 alias: 'widget.messungenlist', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
15 |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
16 store: 'Messungen', |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
17 viewConfig: { |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
18 maxHeight: 350, |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
19 emptyText: 'Keine Messungen gefunden.', |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
20 // minHeight and deferEmptyText are needed to be able to show the |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
21 // emptyText message. |
530
95bad130be98
Increased list grid height.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
521
diff
changeset
|
22 minHeight: 65, |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
23 deferEmptyText: false |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
24 }, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
25 |
172
cfa0cc437781
Implemented opening a new Messungen form when clicking and the "Add Button" on
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
171
diff
changeset
|
26 probeId: null, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
27 |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
28 initComponent: function() { |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
29 var rowEditing = Ext.create('Ext.grid.plugin.RowEditing', { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
30 clicksToMoveEditor: 1, |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
31 autoCancel: false |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
32 }); |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
33 this.plugins = [rowEditing]; |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
34 this.dockedItems = [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
35 xtype: 'toolbar', |
513
6de00657cd87
Moved alll list toolbars to bottom and buttons to the right.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
511
diff
changeset
|
36 dock: 'bottom', |
6de00657cd87
Moved alll list toolbars to bottom and buttons to the right.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
511
diff
changeset
|
37 items: ['->', { |
521
7a20e3054c9e
Rename button to 'Details'
Roland Geider <roland.geider@intevation.de>
parents:
513
diff
changeset
|
38 text: 'Details', |
7a20e3054c9e
Rename button to 'Details'
Roland Geider <roland.geider@intevation.de>
parents:
513
diff
changeset
|
39 icon: 'gfx/document-open.png', |
545
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
40 action: 'open', |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
41 disabled: true |
521
7a20e3054c9e
Rename button to 'Details'
Roland Geider <roland.geider@intevation.de>
parents:
513
diff
changeset
|
42 }, { |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
43 text: 'Hinzufügen', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
44 icon: 'gfx/list-add.png', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
45 action: 'add', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
46 probeId: this.probeId |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
47 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
48 text: 'Löschen', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
49 icon: 'gfx/list-remove.png', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
50 action: 'delete' |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
51 }] |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
52 }]; |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
53 this.columns = [{ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
54 header: 'Mess.ID', |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
55 editor: { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
56 allowBlank: false |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
57 }, |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
58 dataIndex: 'id', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
59 width: 50 |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
60 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
61 header: 'NPR-Nr.', |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
62 editor: { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
63 allowBlank: false |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
64 }, |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
65 dataIndex: 'nebenprobenNr', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
66 width: 50 |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
67 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
68 header: 'MMT', |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
69 editor: { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
70 allowBlank: false |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
71 }, |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
72 dataIndex: 'mmtId', |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
73 width: 50 |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
74 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
75 header: 'Messzeit', |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
76 editor: { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
77 xtype: 'datefield', |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
78 allowBlank: false, |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
79 format: 'd.m.Y', |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
80 minValue: '01.01.2001', // TODO: gibt es ein minValue? |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
81 //minText: 'Fehlertext', // TODO: Fehlertext falls minValue |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
82 maxValue: Ext.Date.format(new Date(), 'd.m.Y') |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
83 }, |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
84 dataIndex: 'messzeitpunkt' |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
85 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
86 header: 'Status', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
87 dataIndex: 'id', |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
88 width: 50, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
89 renderer: function(value) { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
90 var sstore = Ext.getStore('Status'); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
91 sstore.load({ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
92 params: { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
93 probeId: value.probeId, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
94 messungsId: value.id |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
95 } |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
96 }); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
97 if (sstore.getTotalCount() === 0) { |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
98 return 'unbekannt'; |
164
767300b2c70f
Added custom renderer for "Anzahl Kommentare" column count the number of
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
103
diff
changeset
|
99 } |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
100 return sstore.last().get('status'); |
164
767300b2c70f
Added custom renderer for "Anzahl Kommentare" column count the number of
Torsten Irländer <torsten.irlaender@intevation.de>
parents:
103
diff
changeset
|
101 } |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
102 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
103 header: 'OK-Flag', |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
104 dataIndex: 'fertig', |
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
105 width: 50, |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
106 renderer: function(value) { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
107 if (value) { |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
108 return 'Ja'; |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
109 } |
502
484e12e89d54
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
491
diff
changeset
|
110 return 'Nein'; |
511
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
111 }, |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
112 editor: { |
83a98b61546a
Make tables editable for 'Messungen'
Roland Geider <roland.geider@intevation.de>
parents:
502
diff
changeset
|
113 xtype: 'checkboxfield', |
513
6de00657cd87
Moved alll list toolbars to bottom and buttons to the right.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
511
diff
changeset
|
114 allowBlank: false |
491
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
115 } |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
116 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
117 header: 'Anzahl Nuklide', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
118 dataIndex: 'id', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
119 renderer: function(value) { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
120 var mstore = Ext.getStore('Messwerte'); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
121 mstore.load({ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
122 params: { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
123 probeId: value.probeId, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
124 messungsId: value.id |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
125 } |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
126 }); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
127 return mstore.getTotalCount(); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
128 } |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
129 }, { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
130 header: 'Anzahl Kommentare', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
131 flex: 1, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
132 dataIndex: 'id', |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
133 renderer: function(value) { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
134 var kstore = Ext.getStore('KommentareM'); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
135 kstore.load({ |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
136 params: { |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
137 probeId: value.probeId, |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
138 messungsId: value.id |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
139 } |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
140 }); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
141 return kstore.getTotalCount(); |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
142 } |
850ccfe5f3c4
Code style.
Raimund Renkert <raimund.renkert@intevation.de>
parents:
490
diff
changeset
|
143 }]; |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
144 this.callParent(arguments); |
545
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
145 }, |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
146 listeners: { |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
147 selectionchange: function(model, selected, eOpts) { |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
148 /* |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
149 * Enable the 'details' button only when an item is selected |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
150 */ |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
151 if (selected.length > 0) { |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
152 this.down('button[action=open]').enable(); |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
153 } |
7c9475119861
Enable the 'details' button only when an item is selected
Roland Geider <roland.geider@intevation.de>
parents:
538
diff
changeset
|
154 } |
103
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
155 } |
3552b0ee4526
Added Messungenlist to the Proben eddit view.
Torsten Irländer <torsten@irlaender.de>
parents:
diff
changeset
|
156 }); |