diff app/view/window/ProbeEdit.js @ 639:fdaabab6f4cc

Open Probe-/Messung-Edit window automatically if a new item was saved successfully.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 17 Mar 2015 14:44:52 +0100
parents f9c2e82ebc20
children f373446325b4
line wrap: on
line diff
--- a/app/view/window/ProbeEdit.js	Tue Mar 17 14:33:13 2015 +0100
+++ b/app/view/window/ProbeEdit.js	Tue Mar 17 14:44:52 2015 +0100
@@ -35,7 +35,8 @@
             this.callParent(arguments);
             return;
         }
-        this.title = '§3-Probe ' + this.record.get('probeId');
+        var extendedTitle = this.record.get('probeId') ? this.record.get('probeId') : '';
+        this.title = '§3-Probe ' + extendedTitle;
         this.buttons = [{
             text: 'Schließen',
             scope: this,

http://lada.wald.intevation.org