Mercurial > lada > lada-client
comparison app/view/widgets/Verwaltungseinheit.js @ 428:651ee49ff3c2
Added listener to load the recored of the set Verwaltungseinheit.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 08 Nov 2013 12:36:29 +0100 |
parents | a4eb98a6ea20 |
children | debfcc7713e3 |
comparison
equal
deleted
inserted
replaced
427:7d80feaa4a7f | 428:651ee49ff3c2 |
---|---|
15 triggerAction : 'type', | 15 triggerAction : 'type', |
16 typeAhead: true, | 16 typeAhead: true, |
17 minChars: 2, | 17 minChars: 2, |
18 initComponent: function() { | 18 initComponent: function() { |
19 this.callParent(arguments); | 19 this.callParent(arguments); |
20 }, | |
21 // This listener is used to load currently "selected" verwaltungseinheit. | |
22 // This is needed as without having this record the field would only | |
23 // display the raw value (id) of the verwaltungseinheit. | |
24 listeners: { | |
25 render: function(combo, eOpts) { | |
26 combo.store.load({ | |
27 id: this.getValue() | |
28 }); | |
29 } | |
20 } | 30 } |
21 }); | 31 }); |