Mercurial > lada > lada-client
changeset 1194:c63acd44f8ca
Fix regression of 40a07eb873bf to display errors and warnings again.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 08 Sep 2016 11:48:18 +0200 |
parents | 3e078af76b58 |
children | 39d98891881c |
files | app/controller/form/Messprogramm.js app/view/widget/base/NumberField.js |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/form/Messprogramm.js Thu Sep 08 10:06:07 2016 +0200 +++ b/app/controller/form/Messprogramm.js Thu Sep 08 11:48:18 2016 +0200 @@ -278,8 +278,10 @@ // End Before Start validation if (field.period) { var partners = new Array(); - partners[0] = field.up('fieldset').down('numberfield[period=start]').getValue() - partners[1] = field.up('fieldset').down('numberfield[period=end]').getValue() + partners[0] = field.up('fieldset') + .down('numberfield[period=start]').getValue(); + partners[1] = field.up('fieldset') + .down('numberfield[period=end]').getValue(); if (partners[0] && partners[1] && partners[0] > partners [1]) { var msg = Lada.getApplication().bundle.getMsg('662'); field.up('fieldset').showWarningOrError(true, msg, false, '');
--- a/app/view/widget/base/NumberField.js Thu Sep 08 10:06:07 2016 +0200 +++ b/app/view/widget/base/NumberField.js Thu Sep 08 11:48:18 2016 +0200 @@ -30,6 +30,7 @@ fieldLabel: this.fieldLabel, labelWidth: this.labelWidth, readOnly: this.readOnly || false, + period: this.period, listeners: this.listeners }, { xtype: 'image',