Mercurial > lada > lada-client
comparison app/controller/ProbenPlanungSwitcher.js @ 794:bc6bc71efb78
Preselect Proben in PPS, Preselect the first entry in the Filter Combobox
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 18 May 2015 16:17:14 +0200 |
parents | d572ee3271ac |
children | 255568e97c96 |
comparison
equal
deleted
inserted
replaced
793:d4eb8fb99b5e | 794:bc6bc71efb78 |
---|---|
58 } | 58 } |
59 | 59 |
60 | 60 |
61 var store = Ext.StoreManager.lookup(sname); | 61 var store = Ext.StoreManager.lookup(sname); |
62 if (!store) { | 62 if (!store) { |
63 store = Ext.create(sname); | 63 store = Ext.create(sname, { |
64 //Select first Item on Load | |
65 listeners: { | |
66 load: function(s){ | |
67 cbox.select(s.getAt(0).get('id')); | |
68 } | |
69 } | |
70 }); | |
64 } | 71 } |
65 if (store) { | 72 if (store) { |
66 store.load(); | 73 store.load(); |
67 cbox.reset(); | 74 cbox.reset(); |
68 cbox.bindStore(store); | 75 cbox.bindStore(store); |