comparison app/view/window/MessungEdit.js @ 1148:9934dc780701

Set title when all substrings are given. This was not the case when opening the window from MessungList-grid.
author Tom Gottfried <tom@intevation.de>
date Wed, 01 Jun 2016 16:54:20 +0200
parents 255d550e74f4
children d3cf992099a0
comparison
equal deleted inserted replaced
1147:1cf5280bbc45 1148:9934dc780701
44 if (this.probe === null) { 44 if (this.probe === null) {
45 Ext.Msg.alert('Zu der Messung existiert keine Probe!'); 45 Ext.Msg.alert('Zu der Messung existiert keine Probe!');
46 this.callParent(arguments); 46 this.callParent(arguments);
47 return; 47 return;
48 } 48 }
49
50 var messstelle = Ext.data.StoreManager.get('messstellen')
51 .getById(this.probe.get('mstId'));
52
53 this.title = 'Messung: ' + this.record.get('nebenprobenNr')
54 + ' zu Probe: ' + this.probe.get('probeIdAlt')
55 + ' Mst: ' + messstelle.get('messStelle')
56 + ' editieren.';
57
58 49
59 this.buttons = [{ 50 this.buttons = [{
60 text: 'Schließen', 51 text: 'Schließen',
61 scope: this, 52 scope: this,
62 handler: this.close 53 handler: this.close
159 } 150 }
160 }); 151 });
161 } 152 }
162 this.down('messungform').setRecord(record); 153 this.down('messungform').setRecord(record);
163 this.record = record; 154 this.record = record;
155
156 var messstelle = Ext.data.StoreManager.get('messstellen')
157 .getById(this.probe.get('mstId'));
158 this.setTitle('Messung: ' + this.record.get('nebenprobenNr')
159 + ' zu Probe: ' + this.probe.get('probeIdAlt')
160 + ' Mst: ' + messstelle.get('messStelle')
161 + ' editieren.');
162
164 var json = Ext.decode(response.response.responseText); 163 var json = Ext.decode(response.response.responseText);
165 if (json) { 164 if (json) {
166 this.setMessages(json.errors, json.warnings); 165 this.setMessages(json.errors, json.warnings);
167 } 166 }
168 if (this.record.get('readonly') === true || 167 if (this.record.get('readonly') === true ||

http://lada.wald.intevation.org