[Lada-commits] [PATCH 2 of 2] remove obsolate code from Probe-Form

Wald Commits scm-commit at wald.intevation.org
Tue Sep 22 13:00:28 CEST 2015


# HG changeset patch
# User Michael Stanko <mstanko at bfs.de>
# Date 1442919390 -7200
# Node ID 746b429917a861e48a6601ea6e7a16a98a9d82dd
# Parent  efb8cf6467712babe44b23740d2f7569c6675ade
remove obsolate code from Probe-Form

diff -r efb8cf646771 -r 746b429917a8 app/view/form/Probe.js
--- a/app/view/form/Probe.js	Tue Sep 22 09:32:34 2015 +0200
+++ b/app/view/form/Probe.js	Tue Sep 22 12:56:30 2015 +0200
@@ -192,23 +192,23 @@
                             type: 'hbox'
                         },
                         items: [{
-                            xtype: 'datetime',
+                            xtype: 'datefield',
                             emptyText: ' ',
                             fieldLabel: 'Sollzeitraum von',
                             labelWidth: 130,
                             margin: '0, 5, 5, 5',
                             name: 'solldatumBeginn',
-                            format: 'd.m.Y H:i',
+                            format: 'd.m.Y',
                             period: 'start',
                             readOnly: true
                         }, {
-                            xtype: 'datetime',
+                            xtype: 'datefield',
                             emptyText: ' ',
                             fieldLabel: 'bis',
                             labelWidth: 17,
                             margin: '0, 5, 5, 5',
                             name: 'solldatumEnde',
-                            format: 'd.m.Y H:i',
+                            format: 'd.m.Y',
                             period: 'end',
                             readOnly: true
                         }]
@@ -280,9 +280,6 @@
                                     minWidth: 290,
                                     labelWidth: 125,
                                     fieldLabel: 'Deskriptoren',
-                                    regex: new RegExp('(?:D: ){1}(?:[0-9]{2} ){11}[0-9]{2}'),
-                                    regexText: 'Die Deskriptoren haben das falsche Format.<br />'+
-                                    'Richtig wäre: D: 99 99 99 99 99 99 99 99 99 99 99 99',
                                     editable: false,
                                     readOnly: true,
                                     listeners: {
@@ -298,13 +295,7 @@
                                     width: '40%',
                                     enforceMaxLength: true,
                                     editable: false,
-                                    readOnly: true,
-                                    listeners: {
-                                        dirtychange: {
-                                            fn: this.updateOnChange,
-                                            scope: me
-                                        }
-                                    }
+                                    readOnly: true
                                 }]
                         }, {
                             xtype: 'fieldset',
@@ -413,9 +404,6 @@
         this.down('cbox[name=umwId]').clearWarningOrError();
         this.down('datetime[name=probeentnahmeBeginn]').clearWarningOrError();
         this.down('datetime[name=probeentnahmeEnde]').clearWarningOrError();
-//        this.down('datetime[name=solldatumBeginn]').clearWarningOrError();
-//        this.down('datetime[name=solldatumEnde]').clearWarningOrError();
-        //this.down('numberfield[name=probeNehmerId]').clearWarningOrError();
         this.down('fset[name=entnahmePeriod]').clearMessages();
         this.down('fset[name=sollzeitPeriod]').clearMessages();
     },


More information about the Lada-commits mailing list