Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/view/window/MessungEdit.js Fri May 27 18:07:44 2016 +0200 +++ b/app/view/window/MessungEdit.js Wed Jun 01 16:54:20 2016 +0200 @@ -47,15 +47,6 @@ return; } - var messstelle = Ext.data.StoreManager.get('messstellen') - .getById(this.probe.get('mstId')); - - this.title = 'Messung: ' + this.record.get('nebenprobenNr') - + ' zu Probe: ' + this.probe.get('probeIdAlt') - + ' Mst: ' + messstelle.get('messStelle') - + ' editieren.'; - - this.buttons = [{ text: 'Schließen', scope: this, @@ -161,6 +152,14 @@ } this.down('messungform').setRecord(record); this.record = record; + + var messstelle = Ext.data.StoreManager.get('messstellen') + .getById(this.probe.get('mstId')); + this.setTitle('Messung: ' + this.record.get('nebenprobenNr') + + ' zu Probe: ' + this.probe.get('probeIdAlt') + + ' Mst: ' + messstelle.get('messStelle') + + ' editieren.'); + var json = Ext.decode(response.response.responseText); if (json) { this.setMessages(json.errors, json.warnings);