Mercurial > lada > lada-client
diff app/controller/Messungen.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/Messungen.js Fri Oct 31 21:11:25 2014 +0100 +++ b/app/controller/Messungen.js Fri Oct 31 21:28:31 2014 +0100 @@ -19,9 +19,9 @@ 'Proben', 'Messungen', 'Messwerte', - 'MKommentare', + 'KommentareM', 'Status', - 'Messgroessen' + 'StaMessgroessen' ], init: function() { console.log('Initialising the Messungen controller'); @@ -67,25 +67,25 @@ }, editItem: function(grid, record) { console.log('Editing Messung'); - var kstore = this.getMKommentareStore(); + var kstore = this.getKommentareMStore(); kstore.load({ params: { probeId: record.get('probeId'), - messungsId: record.get('messungsId') + messungsId: record.get('id') } }); var sstore = this.getStatusStore(); sstore.load({ params: { probeId: record.get('probeId'), - messungsId: record.get('messungsId') + messungsId: record.get('id') } }); var mstore = this.getMesswerteStore(); mstore.load({ params: { probeId: record.get('probeId'), - messungsId: record.get('messungsId') + messungsId: record.get('id') } }); record.getAuthInfo(this.initEditWindow); @@ -109,7 +109,7 @@ Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn){ if(btn === 'yes'){ var store = grid.getStore(); - var deleteUrl = selection.getProxy().url + selection.getEidi(); + var deleteUrl = selection.getProxy().url + selection.getId(); Ext.Ajax.request({ url: deleteUrl, method: 'DELETE',