diff app/view/form/Messprogramm.js @ 779:3309db91b8c1

PopulateINtervalls on init
author Dustin Demuth <dustin@intevation.de>
date Tue, 12 May 2015 17:26:20 +0200
parents 5a153d36ed4e
children f0b26df02157 d2ee6858f452
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',

http://lada.wald.intevation.org