comparison app/view/form/Probe.js @ 1068:096d552508cd

Set readonly state for messstelle-labor widget.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 24 Mar 2016 09:49:28 +0100
parents d198946e5540
children 9bcd17f7a0ae
comparison
equal deleted inserted replaced
1067:3da8e8b973ad 1068:096d552508cd
458 } 458 }
459 } 459 }
460 }, 460 },
461 461
462 clearMessages: function() { 462 clearMessages: function() {
463 this.down('cbox[name=mstId]').clearWarningOrError(); 463 this.down('cbox[name=mstlabor]').clearWarningOrError();
464 this.down('tfield[name=hauptprobenNr]').clearWarningOrError(); 464 this.down('tfield[name=hauptprobenNr]').clearWarningOrError();
465 this.down('cbox[name=datenbasisId]').clearWarningOrError(); 465 this.down('cbox[name=datenbasisId]').clearWarningOrError();
466 this.down('cbox[name=baId]').clearWarningOrError(); 466 this.down('cbox[name=baId]').clearWarningOrError();
467 this.down('chkbox[name=test]').clearWarningOrError(); 467 this.down('chkbox[name=test]').clearWarningOrError();
468 this.down('cbox[name=probenartId]').clearWarningOrError(); 468 this.down('cbox[name=probenartId]').clearWarningOrError();
474 this.down('fset[name=entnahmePeriod]').clearMessages(); 474 this.down('fset[name=entnahmePeriod]').clearMessages();
475 this.down('fset[name=sollzeitPeriod]').clearMessages(); 475 this.down('fset[name=sollzeitPeriod]').clearMessages();
476 }, 476 },
477 477
478 setReadOnly: function(value) { 478 setReadOnly: function(value) {
479 this.down('cbox[name=mstId]').setReadOnly(value); 479 this.down('cbox[name=mstlabor]').setReadOnly(value);
480 this.down('tfield[name=hauptprobenNr]').setReadOnly(value); 480 this.down('tfield[name=hauptprobenNr]').setReadOnly(value);
481 this.down('cbox[name=datenbasisId]').setReadOnly(value); 481 this.down('cbox[name=datenbasisId]').setReadOnly(value);
482 this.down('cbox[name=baId]').setReadOnly(value); 482 this.down('cbox[name=baId]').setReadOnly(value);
483 this.down('chkbox[name=test]').setReadOnly(value); 483 this.down('chkbox[name=test]').setReadOnly(value);
484 this.down('cbox[name=probenartId]').setReadOnly(value); 484 this.down('cbox[name=probenartId]').setReadOnly(value);

http://lada.wald.intevation.org