changeset 859:6249b731d438

Close messprogramm windows on probe generation.
author Raimund Renkert <raimund.renkert@intevation.de>
date Fri, 10 Jul 2015 18:13:24 +0200
parents 2c686025934a
children 99c5dd8e9b0f 40f0450799ec
files app/view/window/GenProbenFromMessprogramm.js app/view/window/Messprogramm.js
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/window/GenProbenFromMessprogramm.js	Fri Jul 10 18:04:20 2015 +0200
+++ b/app/view/window/GenProbenFromMessprogramm.js	Fri Jul 10 18:13:24 2015 +0200
@@ -67,6 +67,7 @@
                             msg: me.evalResponse(json),
                             buttons: Ext.Msg.OK,
                         });
+                        me.close();
                     },
                     failure: function(response) {
                         var json = null;
--- a/app/view/window/Messprogramm.js	Fri Jul 10 18:04:20 2015 +0200
+++ b/app/view/window/Messprogramm.js	Fri Jul 10 18:13:24 2015 +0200
@@ -31,6 +31,7 @@
 
     initComponent: function() {
         var i18n = Lada.getApplication().bundle;
+        var me = this;
 
         if (this.record == null) {
             this.title = i18n.getMsg('messprogramm.window.create.title');
@@ -58,6 +59,7 @@
                     this.probenWindow.focus();
                     this.probenWindow.setActive(true);
                }
+                me.close();
             }
         },
         '->',

http://lada.wald.intevation.org