Mercurial > lada > lada-client
diff app/controller/form/Messprogramm.js @ 1197:112fd60f1fb4
It is an error to specify invalid intervals.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 20 Sep 2016 18:16:41 +0200 |
parents | c63acd44f8ca |
children | 3b6f40541ac6 |
line wrap: on
line diff
--- a/app/controller/form/Messprogramm.js Tue Sep 20 18:14:38 2016 +0200 +++ b/app/controller/form/Messprogramm.js Tue Sep 20 18:16:41 2016 +0200 @@ -40,15 +40,16 @@ select: this.syncOrtWindow }, 'messprogrammform datetime textfield': { - blur: this.checkDatePeriod + change: this.checkDatePeriod + }, + 'messprogrammform numfield numberfield': { + change: this.checkPeriod }, 'messprogrammform [name="teilintervallVon"]': { change: this.synchronizeSlider, - blur: this.checkPeriod }, 'messprogrammform [name="teilintervallBis"]': { change: this.synchronizeSlider, - blur: this.checkPeriod }, 'messprogrammform probenintervall combobox': { select: this.updateIntervalls @@ -284,7 +285,7 @@ .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, ''); + field.up('fieldset').showWarningOrError(false, '', true, msg); } else { field.up('fieldset').clearMessages(); } @@ -313,7 +314,7 @@ .getValue() if (partners[0] && partners[1] && partners[0] > partners [1]) { var msg = Lada.getApplication().bundle.getMsg('662'); - field.up('fieldset').showWarningOrError(true, msg, false, ''); + field.up('fieldset').showWarningOrError(false, '', true, msg); } else { field.up('fieldset').clearMessages(); }