Mercurial > lada > lada-client
comparison app/view/widgets/Probenart.js @ 121:c05fda928b82
Cleanup part two. Reenabled Proben edit but one use minimum version of the probenedit. Move some stores to the combobox definitons
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 21 Jun 2013 16:55:23 +0200 |
parents | f9b6de636ad0 |
children | 5fbcbf330839 |
comparison
equal
deleted
inserted
replaced
120:19eab475bbe5 | 121:c05fda928b82 |
---|---|
1 // Combobox for Umweltbereich | 1 // Combobox for Probenart |
2 var probenartStore = Ext.create('Ext.data.Store', { | |
3 fields: ['probenartId', 'probenart'], | |
4 proxy: { | |
5 type: 'ajax', | |
6 api: { | |
7 read: 'server/rest/probenart' | |
8 }, | |
9 reader: { | |
10 type: 'json', | |
11 root: 'data' | |
12 } | |
13 } | |
14 }); | |
15 | |
2 Ext.define('Lada.view.widgets.Probenart' ,{ | 16 Ext.define('Lada.view.widgets.Probenart' ,{ |
3 extend: 'Ext.form.ComboBox', | 17 extend: 'Ext.form.ComboBox', |
4 alias: 'widget.probenart', | 18 alias: 'widget.probenart', |
5 store: 'Probenart', | 19 store: probenartStore, |
6 queryMode: 'local', | |
7 displayField:'probenart', | 20 displayField:'probenart', |
8 valueField: 'probenartId', | 21 valueField: 'probenartId', |
9 emptyText:'Wählen Sie eine Probenart', | 22 emptyText:'Wählen Sie eine Probenart', |
10 initComponent: function() { | 23 initComponent: function() { |
11 this.callParent(arguments); | 24 this.callParent(arguments); |