Mercurial > lada > lada-client
diff app/controller/grid/Status.js @ 1062:0497693d5b74
Show statusStufe in messunggrid.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 09 Mar 2016 16:15:23 +0100 |
parents | 8e579acfe0b1 |
children | 90ae675a1224 |
line wrap: on
line diff
--- a/app/controller/grid/Status.js Wed Mar 09 15:39:04 2016 +0100 +++ b/app/controller/grid/Status.js Wed Mar 09 16:15:23 2016 +0100 @@ -121,7 +121,6 @@ // Do not copy, if current userid differs from the id of the current status if (lastrow > 0 && Ext.Array.contains(Lada.mst, recentStatus.get('erzeuger'))) { - if (recentStatus) { // clone the status var record = recentStatus.copy() @@ -207,12 +206,18 @@ } } - button.up('window').initData(); + var win = button.up('window'); + win.initData(); button.up('grid').initData(); + try { + win.parentWindow.initData(); + win.parentWindow.down('messunggrid').store.reload(); + } + catch(e) { + } }, failure: function(response) { // TODO sophisticated error handling, with understandable Texts - var i18n = Lada.getApplication().bundle; var json = Ext.JSON.decode(response.responseText); if (json) { if(json.message){