Mercurial > lada > lada-client
diff app/view/window/MessungEdit.js @ 611:8a156a7fbe67
added a controller for messungforms, modified testdatensatz-widget to load a local store, removed dirtychange listeners from probe-form
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 13 Mar 2015 15:11:12 +0100 |
parents | d2ce1c4c3aad |
children | f959205ab173 |
line wrap: on
line diff
--- a/app/view/window/MessungEdit.js Fri Mar 13 13:20:49 2015 +0100 +++ b/app/view/window/MessungEdit.js Fri Mar 13 15:11:12 2015 +0100 @@ -48,8 +48,9 @@ autoScroll: true, items: [{ xtype: 'messungform', + margin: 5, recordId: this.record.get('id') - }, { + /*}, { xtype: 'fset', name: 'messwerte', title: 'Messwerte', @@ -58,7 +59,7 @@ items: [{ xtype: 'messwertgrid', recordId: this.record.get('id') - }] + }]*/ }, { xtype: 'fset', name: 'messungstatus', @@ -86,6 +87,7 @@ initData: function() { this.clearMessages(); + this.down('messungform').setRecord(this.record); Ext.ClassManager.get('Lada.model.Messung').load(this.record.get('id'), { failure: function(record) { // TODO @@ -99,8 +101,7 @@ } }, scope: this - } - ); + }); }, setMessages: function(errors, warnings) {