Mercurial > lada > lada-client
diff app/controller/form/Messung.js @ 710:f204f30b824a
Handle readonly mode and refresh operations.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Apr 2015 10:50:33 +0200 |
parents | f0bc5387abcc |
children | baef70abfe71 |
line wrap: on
line diff
--- a/app/controller/form/Messung.js Tue Apr 07 17:16:59 2015 +0200 +++ b/app/controller/form/Messung.js Wed Apr 08 10:50:33 2015 +0200 @@ -39,10 +39,18 @@ formPanel.clearMessages(); formPanel.setRecord(record); formPanel.setMessages(json.errors, json.warnings); + formPanel.up('window').initData(); formPanel.up('window').grid.store.reload(); + var parentWin = button.up('window').grid.up('window'); + parentWin.initData(); if (response.action === 'create' && json.success) { - button.up('window').close(); + var oldWin = button.up('window'); + var probe = oldWin.record; + oldWin.close(); var win = Ext.create('Lada.view.window.MessungEdit', { + probe: probe, + parentWindow: parentWin, + grid: oldWin.grid, record: record }); win.show();