Mercurial > lada > lada-client
diff app/controller/ProbenPlanungSwitcher.js @ 795:255568e97c96
Latest commit broke the search function
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 18 May 2015 17:04:32 +0200 |
parents | bc6bc71efb78 |
children | d054732bc7a2 |
line wrap: on
line diff
--- a/app/controller/ProbenPlanungSwitcher.js Mon May 18 16:17:14 2015 +0200 +++ b/app/controller/ProbenPlanungSwitcher.js Mon May 18 17:04:32 2015 +0200 @@ -64,7 +64,11 @@ //Select first Item on Load listeners: { load: function(s){ - cbox.select(s.getAt(0).get('id')); + var records = new Array(); + records.push(store.getAt(0)); + + cbox.select(records[0]); + cbox.fireEvent('select', cbox, records); } } });