Mercurial > lada > lada-client
diff app/view/form/Messung.js @ 958:5d57c6c53e20
Made the grids more robust against erroneous data
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 10 Nov 2015 09:50:06 +0100 |
parents | 881984972e0e |
children | 73b397d8dd3a |
line wrap: on
line diff
--- a/app/view/form/Messung.js Mon Nov 09 14:13:27 2015 +0100 +++ b/app/view/form/Messung.js Tue Nov 10 09:50:06 2015 +0100 @@ -193,10 +193,7 @@ * Updates the Messungform and fills the Statuswert */ setStatusWert: function(value){ - var swStore = Ext.StoreManager.lookup('StatusWerte'); - if (!swStore) { - var swStore = Ext.create('Lada.store.StatusWerte'); - } + var swStore = Ext.create('Lada.store.StatusWerte'); swStore.load({ scope: this, callback: function(records, operation, success) { @@ -218,10 +215,7 @@ * Updates the Messungform and fills the StatusStufe */ setStatusStufe: function(value){ - var ssStore = Ext.StoreManager.lookup('StatusStufe'); - if (!ssStore) { - var ssStore = Ext.create('Lada.store.StatusStufe'); - } + var ssStore = Ext.create('Lada.store.StatusStufe'); ssStore.load({ scope: this, callback: function(records, operation, success) {