Mercurial > lada > lada-client
comparison app/controller/grid/Status.js @ 1001:e92931b8f6b0
A fix which is supposed to reload the statuswerte store, when the Add button is used, part 2
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Wed, 13 Jan 2016 15:24:56 +0100 |
parents | 5beb2581a989 |
children | 54179b6043b6 |
comparison
equal
deleted
inserted
replaced
1000:5beb2581a989 | 1001:e92931b8f6b0 |
---|---|
93 | 93 |
94 // retrive current status from the messung. | 94 // retrive current status from the messung. |
95 var s = button.up('window').down('messungform').getRecord().get('status'); | 95 var s = button.up('window').down('messungform').getRecord().get('status'); |
96 var recentStatus = button.up('statusgrid').store.getById(s); | 96 var recentStatus = button.up('statusgrid').store.getById(s); |
97 | 97 |
98 button.up('statusgrid').reload(); | 98 button.up('statusgrid').statusWerteStore.reload(); |
99 | 99 |
100 //If possible copy the previous record into the new one. | 100 //If possible copy the previous record into the new one. |
101 //this assumes the store is ordered correctly, most recent status last. | 101 //this assumes the store is ordered correctly, most recent status last. |
102 // Do not copy, if current userid differs from the id of the current status | 102 // Do not copy, if current userid differs from the id of the current status |
103 if (lastrow > 0 && | 103 if (lastrow > 0 && |