changeset 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 1cf5280bbc45
children 860f03b39a83
files app/view/window/MessungEdit.js
diffstat 1 files changed, 8 insertions(+), 9 deletions(-) [+]
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);

http://lada.wald.intevation.org