comparison app/controller/grid/Status.js @ 1000:5beb2581a989

A fix which is supposed to reload the statuswerte store, when the Add button is used
author Dustin Demuth <dustin@intevation.de>
date Wed, 13 Jan 2016 15:19:42 +0100
parents 4bbb3da88c14
children e92931b8f6b0
comparison
equal deleted inserted replaced
998:4bbb3da88c14 1000:5beb2581a989
92 var lastrow = button.up('statusgrid').store.count() 92 var lastrow = button.up('statusgrid').store.count()
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
98 button.up('statusgrid').reload();
97 99
98 //If possible copy the previous record into the new one. 100 //If possible copy the previous record into the new one.
99 //this assumes the store is ordered correctly, most recent status last. 101 //this assumes the store is ordered correctly, most recent status last.
100 // 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
101 if (lastrow > 0 && 103 if (lastrow > 0 &&

http://lada.wald.intevation.org