Mercurial > lada > lada-client
comparison app/view/zusatzwerte/List.js @ 125:324b11db4323
Store probeId as attribute of the "add" button in the zusatzwerte list.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Tue, 25 Jun 2013 11:06:43 +0200 |
parents | d78bb4ca6089 |
children | 4dc84682110d |
comparison
equal
deleted
inserted
replaced
124:1907f405eb93 | 125:324b11db4323 |
---|---|
8 // minHeight and deferEmptyText are needed to be able to show the | 8 // minHeight and deferEmptyText are needed to be able to show the |
9 // emptyText message. | 9 // emptyText message. |
10 minHeight: 35, | 10 minHeight: 35, |
11 deferEmptyText: false | 11 deferEmptyText: false |
12 }, | 12 }, |
13 probeId: null, | |
13 initComponent: function() { | 14 initComponent: function() { |
14 this.dockedItems = [ | 15 this.dockedItems = [ |
15 { | 16 { |
16 xtype: 'toolbar', | 17 xtype: 'toolbar', |
17 dock: 'top', | 18 dock: 'top', |
18 items: [ | 19 items: [ |
19 { | 20 { |
20 text: 'Hinzufügen', | 21 text: 'Hinzufügen', |
21 icon: 'gfx/plus.gif', | 22 icon: 'gfx/plus.gif', |
22 action: 'add' | 23 action: 'add', |
24 probeId: this.probeId | |
23 }, | 25 }, |
24 { | 26 { |
25 text: 'Löschen', | 27 text: 'Löschen', |
26 icon: 'gfx/minus.gif', | 28 icon: 'gfx/minus.gif', |
27 action: 'delete' | 29 action: 'delete' |