Mercurial > lada > lada-client
diff app/view/messwerte/List.js @ 496:d07e5086a64b
Moved stammdaten stores to app.js and load them via storemanager.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 06 Nov 2014 10:35:35 +0100 |
parents | 850ccfe5f3c4 |
children | 7c0653e8d9f7 |
line wrap: on
line diff
--- a/app/view/messwerte/List.js Mon Nov 03 12:12:24 2014 +0100 +++ b/app/view/messwerte/List.js Thu Nov 06 10:35:35 2014 +0100 @@ -56,7 +56,7 @@ header: 'Messgröße', dataIndex: 'messgroesseId', renderer: function(value) { - var store = Ext.getStore('StaMessgroessen'); + var store = Ext.data.StoreManager.get('staMessgroessen'); return store.findRecord('id', value).get('messgroesse'); } }, { @@ -64,11 +64,7 @@ dataIndex: 'mehId', renderer: function(value) { console.log('einheit: ' + value); - var store = Ext.data.StoreManager.get('StaMesseinheiten'); -/* if (!store) { - store = Ext.create('Lada.store.StaMesseinheiten'); - } -*/ console.log(store.getById(value)); + var store = Ext.data.StoreManager.get('staMesseinheiten'); return store.findRecord('id', value).get('einheit'); } }, {