[Lada-commits] [PATCH 1 of 3] Use correct parent window reference for messung windows

Wald Commits scm-commit at wald.intevation.org
Mon May 23 17:07:56 CEST 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1464016002 -7200
# Node ID 0a032c98c3a65e4dbc763ff2d794ad29324c5eb5
# Parent  ea5774447e4991022c77392617db2017c3c4abe8
Use correct parent window reference for messung windows.

diff -r ea5774447e49 -r 0a032c98c3a6 app/controller/form/Messung.js
--- a/app/controller/form/Messung.js	Mon May 23 11:39:19 2016 +0200
+++ b/app/controller/form/Messung.js	Mon May 23 17:06:42 2016 +0200
@@ -54,7 +54,7 @@
                     formPanel.setMessages(json.errors, json.warnings);
                     formPanel.up('window').initData();
                     formPanel.up('window').grid.store.reload();
-                    var parentWin = button.up('window').grid.up('window');
+                    var parentWin = button.up('window').parentWindow;
                     parentWin.initData();
                     if (response.action === 'create' && json.success) {
                         var oldWin = button.up('window');
diff -r ea5774447e49 -r 0a032c98c3a6 app/controller/grid/Messung.js
--- a/app/controller/grid/Messung.js	Mon May 23 11:39:19 2016 +0200
+++ b/app/controller/grid/Messung.js	Mon May 23 17:06:42 2016 +0200
@@ -91,7 +91,7 @@
             },
             success: function(precord, response) {
                 var messungWin = Ext.create('Lada.view.window.MessungEdit', {
-                    parentWindow: grid.up('window'),
+                    parentWindow: probeWin,
                     probe: precord,
                     record: record,
                     grid: grid
diff -r ea5774447e49 -r 0a032c98c3a6 app/controller/grid/MessungList.js
--- a/app/controller/grid/MessungList.js	Mon May 23 11:39:19 2016 +0200
+++ b/app/controller/grid/MessungList.js	Mon May 23 17:06:42 2016 +0200
@@ -88,7 +88,7 @@
             },
             success: function(precord, response) {
                 var messungWin = Ext.create('Lada.view.window.MessungEdit', {
-                    parentWindow: grid.up('window'),
+                    parentWindow: probeWin,
                     probe: precord,
                     record: record,
                     grid: grid


More information about the Lada-commits mailing list