Mercurial > lada > lada-client
changeset 1120:0a032c98c3a6
Use correct parent window reference for messung windows.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Mon, 23 May 2016 17:06:42 +0200 |
parents | ea5774447e49 |
children | 0b908138a740 |
files | app/controller/form/Messung.js app/controller/grid/Messung.js app/controller/grid/MessungList.js |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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');
--- 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
--- 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