Mercurial > lada > lada-client
changeset 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 |
files | app/controller/grid/Status.js app/view/grid/Status.js |
diffstat | 2 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/grid/Status.js Wed Jan 13 15:19:42 2016 +0100 +++ b/app/controller/grid/Status.js Wed Jan 13 15:24:56 2016 +0100 @@ -95,7 +95,7 @@ var s = button.up('window').down('messungform').getRecord().get('status'); var recentStatus = button.up('statusgrid').store.getById(s); - button.up('statusgrid').reload(); + button.up('statusgrid').statusWerteStore.reload(); //If possible copy the previous record into the new one. //this assumes the store is ordered correctly, most recent status last.
--- a/app/view/grid/Status.js Wed Jan 13 15:19:42 2016 +0100 +++ b/app/view/grid/Status.js Wed Jan 13 15:24:56 2016 +0100 @@ -29,7 +29,7 @@ this.emptyText = i18n.getMsg('statusgrid.emptyText'); this.statusWerteStore = Ext.create('Lada.store.StatusWerte'); - statusWerteStore.load({ + this.statusWerteStore.load({ params: { messungsId: this.recordId } @@ -141,7 +141,7 @@ }, editor: { xtype: 'combobox', - store: statusWerteStore, + store: this.statusWerteStore, queryMode: 'local', displayField: 'wert', valueField: 'id',