diff app/view/widget/MessprogrammLand.js @ 1146:645f888e34be

merged.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 27 May 2016 14:52:56 +0200 (2016-05-27)
parents 9c8b5cbb929a
children 74e4e5a7adc7
line wrap: on
line diff
--- a/app/view/widget/MessprogrammLand.js	Fri May 27 14:51:41 2016 +0200
+++ b/app/view/widget/MessprogrammLand.js	Fri May 27 14:52:56 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);
     }
 });

http://lada.wald.intevation.org