Mercurial > lada > lada-client
diff app/view/FilterPanel.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 | 78e73be45aaa |
children | 255568e97c96 |
line wrap: on
line diff
--- a/app/view/FilterPanel.js Wed May 13 16:01:24 2015 +0200 +++ b/app/view/FilterPanel.js Mon May 18 16:17:14 2015 +0200 @@ -26,11 +26,20 @@ this.items = [{ xtype: 'combobox', name: 'filter', + id: 'filter-combobox', editable: false, - store: Ext.create('Lada.store.ProbeQueries'), + store: Ext.create('Lada.store.ProbeQueries',{ + listeners: { + load: function(s){ + Ext.getCmp('filter-combobox') + .select(s.getAt(0).get('id')); + } + } + }), displayField: 'name', valueField: 'id', - emptyText: 'Wählen Sie eine Abfrage' + emptyText: 'Wählen Sie eine Abfrage', + queryMode: 'local' }, { xtype: 'panel', border: false,