comparison app/view/form/Messprogramm.js @ 777:5a153d36ed4e

ClearMessages
author Dustin Demuth <dustin@intevation.de>
date Tue, 12 May 2015 17:00:22 +0200
parents afc9076db490
children 3309db91b8c1
comparison
equal deleted inserted replaced
776:da14e0f3e599 777:5a153d36ed4e
89 fieldLabel: i18n.getMsg('mstId'), 89 fieldLabel: i18n.getMsg('mstId'),
90 labelWidth: 135, 90 labelWidth: 135,
91 allowBlank: false, 91 allowBlank: false,
92 editable: true 92 editable: true
93 }, { 93 }, {
94 xtype: 'textfield', 94 xtype: 'tfield',
95 name: 'name', 95 name: 'name',
96 fieldLabel: i18n.getMsg('name'), 96 fieldLabel: i18n.getMsg('name'),
97 labelWidth: 135, 97 labelWidth: 135,
98 allowBlank: false, 98 allowBlank: false,
99 editable: true 99 editable: true
230 align: 'stretch' 230 align: 'stretch'
231 }, 231 },
232 items: [{ 232 items: [{
233 xtype: 'fset', 233 xtype: 'fset',
234 title: i18n.getMsg('validity'), 234 title: i18n.getMsg('validity'),
235 name: 'gueltigPeriod', 235 name: 'gueltigPeriodFieldset',
236 anchor: '100%', 236 anchor: '100%',
237 width: '50%', 237 width: '50%',
238 margin: '0, 5, 5, 5', 238 margin: '0, 5, 5, 5',
239 layout: { 239 layout: {
240 type: 'vbox', 240 type: 'vbox',
264 name: 'intervallOffset', 264 name: 'intervallOffset',
265 }] 265 }]
266 }, { 266 }, {
267 xtype: 'fset', 267 xtype: 'fset',
268 title: i18n.getMsg('probenintervall'), 268 title: i18n.getMsg('probenintervall'),
269 name: 'probenintervall', 269 name: 'probenIntervallFieldset',
270 anchor: '100%', 270 anchor: '100%',
271 width: '50%', 271 width: '50%',
272 margin: '0, 5, 5, 5', 272 margin: '0, 5, 5, 5',
273 layout: { 273 layout: {
274 type: 'vbox', 274 type: 'vbox',
435 } 435 }
436 }, 436 },
437 437
438 clearMessages: function() { 438 clearMessages: function() {
439 // TODO 439 // TODO
440 this.down('cbox[name=mstId]').clearWarningOrError();
441 this.down('tfield[name=name]').clearWarningOrError();
442 //no clearmsg for probeKommentar
443 this.down('fset[name=erwAngaben]').clearMessages();
444 this.down('cbox[name=datenbasisId]').clearWarningOrError();
445 this.down('cbox[name=baId]').clearWarningOrError();
446 this.down('cbox[name=test]').clearWarningOrError();
447 this.down('cbox[name=probenartId]').clearWarningOrError();
448 this.down('cbox[name=netzbetreiberId]').clearWarningOrError();
449 //no clear for probeNehmerId
450 // Deskriptoren are missing
451 this.down('cbox[name=umwId]').clearWarningOrError();
452 this.down('fset[name=gueltigPeriodFieldset]').clearMessages();
453 this.down('fset[name=probenIntervallFieldset]').clearMessages();
440 }, 454 },
441 455
442 setReadOnly: function(value) { 456 setReadOnly: function(value) {
443 // TODO 457 // TODO
444 }, 458 },

http://lada.wald.intevation.org