Mercurial > lada > lada-client
comparison app/view/form/Messprogramm.js @ 1419:01f083db45b7
Use readonly flag to set edit status of UI
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 29 Mar 2017 14:27:20 +0200 |
parents | e749d09fafca |
children |
comparison
equal
deleted
inserted
replaced
1418:3ecf993c250a | 1419:01f083db45b7 |
---|---|
663 // Deskriptoren are missing | 663 // Deskriptoren are missing |
664 this.down('cbox[name=umwId]').clearWarningOrError(); | 664 this.down('cbox[name=umwId]').clearWarningOrError(); |
665 }, | 665 }, |
666 | 666 |
667 setReadOnly: function(value) { | 667 setReadOnly: function(value) { |
668 // TODO | 668 this.down('cbox[name=mstlabor]').setReadOnly(value); |
669 this.down('cbox[name=datenbasisId]').setReadOnly(value); | |
670 this.down('cbox[name=baId]').setReadOnly(value); | |
671 this.down('chkbox[name=test]').setReadOnly(value); | |
672 this.down('cbox[name=probenartId]').setReadOnly(value); | |
673 this.down('netzbetreiber').setReadOnly(value); | |
674 this.down('cbox[name=probenintervall]').setReadOnly(value); | |
675 this.down('numfield[name=teilintervallVon]').setReadOnly(value); | |
676 this.down('numfield[name=teilintervallBis]').setReadOnly(value); | |
677 this.down('numfield[name=intervallOffset]').setReadOnly(value); | |
678 this.down('dayofyear[name=gueltigVon]').setReadOnly(value); | |
679 this.down('dayofyear[name=gueltigBis]').setReadOnly(value); | |
680 this.down('cbox[name=umwId]').setReadOnly(value); | |
681 this.down('cbox[name=probeNehmerId]').setReadOnly(value); | |
682 this.down('messprogrammland[name=mplId]').setReadOnly(value); | |
683 this.down('probenintervallslider').setReadOnly(value); | |
684 for (var i = 0; i < 12; i++) { | |
685 this.down('deskriptor[layer='+i+']').setReadOnly(value); | |
686 } | |
669 }, | 687 }, |
670 | 688 |
671 buildDescriptors: function() { | 689 buildDescriptors: function() { |
672 var fields = []; | 690 var fields = []; |
673 for (var i = 0; i < 12; i++) { | 691 for (var i = 0; i < 12; i++) { |