[Lada-commits] [PATCH 1 of 3] reset combobox when the store was switched
Wald Commits
scm-commit at wald.intevation.org
Tue Apr 28 16:55:00 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1430214819 -7200
# Node ID 561ade69980ee5ffb4265e26408b2aedb38dd089
# Parent 78e73be45aaa11486fe6565e81a983d6aa504bfc
reset combobox when the store was switched
diff -r 78e73be45aaa -r 561ade69980e app/controller/ProbenPlanungSwitcher.js
--- a/app/controller/ProbenPlanungSwitcher.js Tue Apr 28 10:57:50 2015 +0200
+++ b/app/controller/ProbenPlanungSwitcher.js Tue Apr 28 11:53:39 2015 +0200
@@ -44,7 +44,7 @@
var sname = 'Lada.store.ProbeQueries';
if (field.inputValue === 'probenplanung' && cbox) {
- sname = 'Lada.store.MessprogrammQueries'; // TODO change store!
+ sname = 'Lada.store.MessprogrammQueries';
}
else if (field.inputValue === 'probenliste' && cbox) {
sname = 'Lada.store.ProbeQueries';
@@ -56,6 +56,7 @@
}
if (store) {
store.load();
+ cbox.reset();
cbox.bindStore(store);
}
}
More information about the Lada-commits
mailing list