Mercurial > lada > lada-client
changeset 694:a0df1a8dff24
added setReadOnly()
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 26 Mar 2015 16:02:38 +0100 |
parents | 817524db4017 |
children | d6ef146e1a9f |
files | app/view/form/Messung.js |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/app/view/form/Messung.js Thu Mar 26 15:54:50 2015 +0100 +++ b/app/view/form/Messung.js Thu Mar 26 16:02:38 2015 +0100 @@ -130,7 +130,12 @@ // TODO this is a stub }, - setReadonly: function() { - // TODO this is a stub + setReadOnly: function(value) { + this.down('textfield[name=nebenprobenNr]').setReadOnly(value); + this.down('messmethode[name=mmtId]').setReadOnly(value); + this.down('datetime[name=messzeitpunkt]').setReadOnly(value); + this.down('numberfield[name=messdauer]').setReadOnly(value); + this.down('chkbox[name=fertig]').setReadOnly(value); + this.down('chkbox[name=geplant]').setReadOnly(value); } });