Mercurial > lada > lada-client
comparison 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 |
comparison
equal
deleted
inserted
replaced
489:6056a7fd9aa2 | 490:446e99cfd425 |
---|---|
49 zusatzwert.set('messungsId', button.parentId); | 49 zusatzwert.set('messungsId', button.parentId); |
50 var view = Ext.widget('statuscreate', {model: zusatzwert}); | 50 var view = Ext.widget('statuscreate', {model: zusatzwert}); |
51 }, | 51 }, |
52 editItem: function(grid, record) { | 52 editItem: function(grid, record) { |
53 console.log('Editing Status'); | 53 console.log('Editing Status'); |
54 record.getAuthInfo(this.initEditWindow) | 54 var mstore = Ext.data.StoreManager.get('Messungen'); |
55 var messung = mstore.getById(record.get('messungsId')); | |
56 record.getAuthInfo(this.initEditWindow, messung.get('probeId')); | |
55 console.log("Loaded Status with ID " + record.getId()); //outputs ID | 57 console.log("Loaded Status with ID " + record.getId()); //outputs ID |
56 }, | 58 }, |
57 initEditWindow: function(record, readonly, owner) { | 59 initEditWindow: function(record, readonly, owner) { |
58 var view = Ext.widget('statuscreate', {model: record}); | 60 var view = Ext.widget('statuscreate', {model: record}); |
59 var ignore = Array(); | 61 var ignore = Array(); |