Mercurial > lada > lada-client
diff app/controller/Status.js @ 490:446e99cfd425
Updated views and controllers using the new model and stores.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:28:31 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
line wrap: on
line diff
--- a/app/controller/Status.js Fri Oct 31 21:11:25 2014 +0100 +++ b/app/controller/Status.js Fri Oct 31 21:28:31 2014 +0100 @@ -51,7 +51,9 @@ }, editItem: function(grid, record) { console.log('Editing Status'); - record.getAuthInfo(this.initEditWindow) + var mstore = Ext.data.StoreManager.get('Messungen'); + var messung = mstore.getById(record.get('messungsId')); + record.getAuthInfo(this.initEditWindow, messung.get('probeId')); console.log("Loaded Status with ID " + record.getId()); //outputs ID }, initEditWindow: function(record, readonly, owner) {