Mercurial > lada > lada-client
diff app/view/form/Messprogramm.js @ 1210:a24de34d6423
Align subintervall with validity for yearly samples.
Subintervall is redundant to validity for yearly samples.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Tue, 11 Oct 2016 14:34:12 +0200 |
parents | 0a7f0a09151c |
children | 3e6756b0fc97 |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Mon Oct 10 16:42:30 2016 +0200 +++ b/app/view/form/Messprogramm.js Tue Oct 11 14:34:12 2016 +0200 @@ -433,6 +433,18 @@ svalLower = record.get('teilintervallVon'); } + // subintervall is redundant to validity for yearly samples + if (intervall == 'J') { + svalUpper = this.getForm().findField('gueltigBis').getValue(); + svalLower = this.getForm().findField('gueltigVon').getValue(); + b.setReadOnly(true); + v.setReadOnly(true); + s.setDisabled(true); + } else { + b.setReadOnly(false); + v.setReadOnly(false); + s.setDisabled(false); + } var intrec = intervallstore .findRecord('probenintervall',