Mercurial > lada > lada-client
diff app/view/zusatzwerte/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/zusatzwerte/List.js Mon Nov 03 12:12:24 2014 +0100 +++ b/app/view/zusatzwerte/List.js Thu Nov 06 10:35:35 2014 +0100 @@ -47,7 +47,7 @@ header: 'PZW-Größe', dataIndex: 'pzsId', renderer: function(value) { - var store = Ext.getStore('StaProbenzusaetze'); + var store = Ext.data.StoreManager.get('staProbenzusaetze'); var record = store.getById(value); return record.get('beschreibung'); }, @@ -73,8 +73,8 @@ header: 'Maßeinheit', dataIndex: 'pzsId', renderer: function(value) { - var zstore = Ext.getStore('StaProbenzusaetze'); - var mstore = Ext.getStore('StaMesseinheiten'); + var zstore = Ext.data.StoreManager.get('staProbenzusaetze'); + var mstore = Ext.data.StoreManager.get('staMesseinheiten'); console.log('store: ' + mstore); var mehId = zstore.getById(value).get('mehId'); var record = mstore.findRecord('id', mehId);