[Lada-commits] [PATCH 5 of 7] Added listener to load the recored of the set Verwaltungseinheit
Wald Commits
scm-commit at wald.intevation.org
Fri Nov 8 12:48:36 CET 2013
# HG changeset patch
# User Torsten Irländer <torsten.irlaender at intevation.de>
# Date 1383910589 -3600
# Node ID 651ee49ff3c23445c745c7b593d83d6e0b92cbe2
# Parent 7d80feaa4a7fcceed3f6ed580cd4a3cc3658f031
Added listener to load the recored of the set Verwaltungseinheit.
diff -r 7d80feaa4a7f -r 651ee49ff3c2 app/view/widgets/Verwaltungseinheit.js
--- a/app/view/widgets/Verwaltungseinheit.js Fri Nov 08 12:34:37 2013 +0100
+++ b/app/view/widgets/Verwaltungseinheit.js Fri Nov 08 12:36:29 2013 +0100
@@ -17,5 +17,15 @@
minChars: 2,
initComponent: function() {
this.callParent(arguments);
+ },
+ // This listener is used to load currently "selected" verwaltungseinheit.
+ // This is needed as without having this record the field would only
+ // display the raw value (id) of the verwaltungseinheit.
+ listeners: {
+ render: function(combo, eOpts) {
+ combo.store.load({
+ id: this.getValue()
+ });
+ }
}
});
More information about the Lada-commits
mailing list