Mercurial > lada > lada-client
diff app/view/widget/MessprogrammLand.js @ 1128:9c8b5cbb929a
complete some comboboxes in probe form and messprogramm form
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Tue, 24 May 2016 15:54:12 +0200 |
parents | 92c0fa2f29b0 |
children | 74e4e5a7adc7 |
line wrap: on
line diff
--- a/app/view/widget/MessprogrammLand.js Tue May 24 10:41:07 2016 +0200 +++ b/app/view/widget/MessprogrammLand.js Tue May 24 15:54:12 2016 +0200 @@ -14,8 +14,7 @@ alias: 'widget.messprogrammland', store: 'messprogrammkategorie', displayField: 'id', - valueField: 'id', - emptyText: 'Wählen Sie ein Landesmessprogramm', + valueField: 'mplId', editable: this.editable || false, forceSelection: true, // Enable filtering of comboboxes @@ -31,13 +30,14 @@ '<tpl for=".">{mplId} - {bezeichnung}</tpl>'), initComponent: function() { + var i18n = Lada.getApplication().bundle; + this.emptyText = i18n.getMsg('emptytext.messprogrammland'); + this.store = Ext.data.StoreManager.get('messprogrammkategorie'); if (!this.store) { this.store = Ext.create('Lada.store.MessprogrammKategorie'); } - else { - this.store.clearFilter(); - } + this.store.sort(); this.callParent(arguments); } });