changeset 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
files app/controller/grid/Status.js app/view/grid/Status.js
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/grid/Status.js	Mon Jan 11 11:36:35 2016 +0100
+++ b/app/controller/grid/Status.js	Wed Jan 13 15:19:42 2016 +0100
@@ -95,6 +95,8 @@
         var s = button.up('window').down('messungform').getRecord().get('status');
         var recentStatus = button.up('statusgrid').store.getById(s);
 
+        button.up('statusgrid').reload();
+
         //If possible copy the previous record into the new one.
         //this assumes the store is ordered correctly, most recent status last.
         // Do not copy, if current userid differs from the id of the current status
--- a/app/view/grid/Status.js	Mon Jan 11 11:36:35 2016 +0100
+++ b/app/view/grid/Status.js	Wed Jan 13 15:19:42 2016 +0100
@@ -22,12 +22,13 @@
     recordId: null,
     readOnly: true,
     allowDeselect: true,
+    statusWerteStore: null,
 
     initComponent: function() {
         var i18n = Lada.getApplication().bundle;
         this.emptyText = i18n.getMsg('statusgrid.emptyText');
 
-        var statusWerteStore = Ext.create('Lada.store.StatusWerte');
+        this.statusWerteStore = Ext.create('Lada.store.StatusWerte');
         statusWerteStore.load({
             params: {
                 messungsId: this.recordId

http://lada.wald.intevation.org