Mercurial > lada > lada-client
diff app/view/form/Ortszuordnung.js @ 1339:1a2cd9bef6d7
messprogramm zuordnung now functional
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 19:37:28 +0100 |
parents | d2f06ce4d43a |
children | 15e4a3e42ad7 |
line wrap: on
line diff
--- a/app/view/form/Ortszuordnung.js Fri Feb 03 18:01:25 2017 +0100 +++ b/app/view/form/Ortszuordnung.js Fri Feb 03 19:37:28 2017 +0100 @@ -38,13 +38,6 @@ initComponent: function() { var i18n = Lada.getApplication().bundle; var me = this; - if (this.type == 'probe') { - this.ortIdName = 'ortId'; - this.typName = 'ortszuordnungTyp'; - } else if (this.type == 'mpr') { - this.ortIdName = 'ort'; - this.typName = 'ortsTyp'; - } this.items = [{ xtype: 'fieldset', title: i18n.getMsg('ortszuordnung.form.fset.title'), @@ -104,7 +97,7 @@ labelWidth: 125, allowBlank: false, editable: true, - name: this.typName, + name: 'ortszuordnungTyp', disableKeyFilter: true, fieldLabel: i18n.getMsg('ortszuordnung.form.field.ortszuordnungtyp'), }, { @@ -115,7 +108,7 @@ regex: /^[0-9]{1,45}$/, submitValue: true, hidden: true, - name: this.ortIdName, + name: 'ortId', listeners: { change: me.changed } @@ -216,7 +209,7 @@ setReadOnly: function(value) { this.down('tfield[name=ortszusatztext]').setReadOnly(value); - var fieldId = 'textfield[name=' + this.typName +']'; + var fieldId = 'textfield[name=ortszuordnungTyp]'; this.down(fieldId).setReadOnly(value); },