diff app/controller/ProbenPlanungSwitcher.js @ 750:561ade69980e

reset combobox when the store was switched
author Dustin Demuth <dustin@intevation.de>
date Tue, 28 Apr 2015 11:53:39 +0200
parents 78e73be45aaa
children 704bb359c0fe
line wrap: on
line diff
--- 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);
         }
     }

http://lada.wald.intevation.org