diff app/view/window/MessprogrammOrt.js @ 818:097d4edc2f00

Genprobenwindow can only be created once, also fixed messprogrammortewindow 'close with x and can not reopen' bug
author Dustin Demuth <dustin@intevation.de>
date Fri, 29 May 2015 09:05:06 +0200
parents b8fd43021c29
children def27cdd0dfa
line wrap: on
line diff
--- a/app/view/window/MessprogrammOrt.js	Fri May 29 08:31:19 2015 +0200
+++ b/app/view/window/MessprogrammOrt.js	Fri May 29 09:05:06 2015 +0200
@@ -41,7 +41,7 @@
             text: i18n.getMsg('cancel'),
             scope: this,
             handler: function() {
-                this.close()
+                this.close();
                 this.parentWindow.down('messprogrammform')
                     .ortWindow = null;
            }
@@ -57,6 +57,10 @@
             },
             deactivate: function(){
                 this.getEl().addCls('window-inactive');
+            },
+            close: function () {
+                this.parentWindow.down('messprogrammform')
+                    .ortWindow = null;
             }
         });
 

http://lada.wald.intevation.org