[Lada-commits] [PATCH 1 of 3] PopulateINtervalls on init

Wald Commits scm-commit at wald.intevation.org
Tue May 12 17:43:08 CEST 2015


# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1431444380 -7200
# Node ID 3309db91b8c1ba28a783390b7fb3f909dce32acb
# Parent  db85bafd383fd59f5353e2850d7c7461f83f0c25
PopulateINtervalls on init

diff -r db85bafd383f -r 3309db91b8c1 app/view/form/Messprogramm.js
--- 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',
diff -r db85bafd383f -r 3309db91b8c1 app/view/window/Messprogramm.js
--- 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);
                 },


More information about the Lada-commits mailing list