Mercurial > lada > lada-client
diff app/view/form/Messprogramm.js @ 774:afc9076db490
Added Offset field
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Tue, 12 May 2015 16:11:05 +0200 |
parents | b7484c7da2d4 |
children | 5a153d36ed4e |
line wrap: on
line diff
--- a/app/view/form/Messprogramm.js Tue May 12 15:07:23 2015 +0200 +++ b/app/view/form/Messprogramm.js Tue May 12 16:11:05 2015 +0200 @@ -256,6 +256,12 @@ name: 'gueltigBis', format: 'd.m.Y H:i', period: 'end' + }, { + xtype: 'numberfield', + fieldLabel: i18n.getMsg('offset'), + labelWidth: 90, + anchor: '100%', + name: 'intervallOffset', }] }, { xtype: 'fset', @@ -310,6 +316,7 @@ // for instance H, M, J, ... // Initialize the probenintervallslider var s = this.down('probenintervallslider'); + var i = this.getForm().findField('intervallOffset'); var v = this.getForm().findField('teilintervallVon'); var b = this.getForm().findField('teilintervallBis'); var intervallstore = Ext.data.StoreManager.get('Probenintervall'); @@ -367,6 +374,10 @@ v.setValue(svalLower); b.setValue(svalUpper); + //Set IntervallOffset + i.setMinValue(0); + i.setMaxValue(max-1); + console.log('Populate End'); },