[Lada-commits] [PATCH 1 of 2] complete some comboboxes in probe form and messprogramm form

Wald Commits scm-commit at wald.intevation.org
Tue May 24 15:55:10 CEST 2016


# HG changeset patch
# User Michael Stanko <mstanko at bfs.de>
# Date 1464098052 -7200
# Node ID 9c8b5cbb929ac8010fcd21303d94aede3a3efe2e
# Parent  f1d234a7adc7accaaea98ae2c72fb816baffe2db
complete some comboboxes in probe form and messprogramm form

diff -r f1d234a7adc7 -r 9c8b5cbb929a app/view/widget/DatensatzErzeuger.js
--- a/app/view/widget/DatensatzErzeuger.js	Tue May 24 10:41:07 2016 +0200
+++ b/app/view/widget/DatensatzErzeuger.js	Tue May 24 15:54:12 2016 +0200
@@ -15,7 +15,6 @@
     store: 'datensatzerzeuger',
     displayField: 'id',
     valueField: 'id',
-    emptyText: 'Wählen Sie einen Datensatzerzeuger',
     editable: this.editable || false,
     forceSelection: true,
     // Enable filtering of comboboxes
diff -r f1d234a7adc7 -r 9c8b5cbb929a app/view/widget/MessprogrammLand.js
--- 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);
     }
 });
diff -r f1d234a7adc7 -r 9c8b5cbb929a app/view/widget/Probenehmer.js
--- a/app/view/widget/Probenehmer.js	Tue May 24 10:41:07 2016 +0200
+++ b/app/view/widget/Probenehmer.js	Tue May 24 15:54:12 2016 +0200
@@ -15,7 +15,6 @@
     store: 'Probenehmer',
     displayField: 'id',
     valueField: 'id',
-    emptyText: 'Wählen Sie einen Probenehmer',
     editable: this.editable || false,
     forceSelection: true,
     // Enable filtering of comboboxes


More information about the Lada-commits mailing list