Mercurial > lada > lada-client
changeset 779:3309db91b8c1
PopulateINtervalls on init
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 12 May 2015 17:26:20 +0200 |
parents | db85bafd383f |
children | b3e38a2a25c7 |
files | app/view/form/Messprogramm.js app/view/window/Messprogramm.js |
diffstat | 2 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Tue May 12 17:00:57 2015 +0200 +++ b/app/view/form/Messprogramm.js Tue May 12 17:26:20 2015 +0200 @@ -98,7 +98,7 @@ allowBlank: false, editable: true }, { - xtype: 'textarea', //todo: we need a widget which is capable of handling errormsg. + xtype: 'textarea', //TODO: we need a widget which is capable of handling errormsg. name: 'probeKommentar', labelAlign: 'top', fieldLabel: i18n.getMsg('probeKommentar'), @@ -383,6 +383,7 @@ setRecord: function(record) { this.clearMessages(); + this.getForm().loadRecord(record); //Set the intervall numberfields and the slider. this.down('probenintervallslider').setValue([ @@ -391,6 +392,7 @@ ]); //TODO Set Sliders MinMaxValue + this.populateIntervall(record); this.down('probenintervallslider').on( 'change',
--- a/app/view/window/Messprogramm.js Tue May 12 17:00:57 2015 +0200 +++ b/app/view/window/Messprogramm.js Tue May 12 17:26:20 2015 +0200 @@ -142,11 +142,11 @@ // If the Messprogramm is ReadOnly, disable Inputfields and grids if (this.record.get('readonly') === true) { this.down('messprogrammform').setReadOnly(true); - this.disableChildren(); + //this.disableChildren(); } else { this.down('messprogrammform').setReadOnly(false); - this.enableChildren(); + //this.enableChildren(); } me.setLoading(false); },