# HG changeset patch # User Tom Gottfried # Date 1464792860 -7200 # Node ID 9934dc780701bdcaf4238aeb20593d82b2b351cf # Parent 1cf5280bbc451d38ff6a9722840df468db12cf24 Set title when all substrings are given. This was not the case when opening the window from MessungList-grid. diff -r 1cf5280bbc45 -r 9934dc780701 app/view/window/MessungEdit.js --- 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);