Limit numeric fields in mux configuration (frequency and symbolrate) to the limits obtained from DVB adapter info.
This commit is contained in:
parent
670f2d0b0e
commit
f2988f68f2
1 changed files with 30 additions and 9 deletions
|
@ -584,16 +584,19 @@ tvheadend.addMuxManually = function(adapterData, satConfStore) {
|
|||
var adId = adapterData.identifier;
|
||||
|
||||
|
||||
var items = [
|
||||
new Ext.form.NumberField({
|
||||
fieldLabel: 'Frequency (kHz)',
|
||||
name: 'frequency',
|
||||
allowNegative: false
|
||||
})
|
||||
];
|
||||
var items = [];
|
||||
|
||||
switch(adapterData.deliverySystem) {
|
||||
case 'DVB-T':
|
||||
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel: 'Frequency (kHz)',
|
||||
name: 'frequency',
|
||||
allowNegative: false,
|
||||
minValue: adapterData.freqMin,
|
||||
maxValue: adapterData.freqMax
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.ComboBox({
|
||||
fieldLabel: 'Bandwidth',
|
||||
name: 'bandwidth',
|
||||
|
@ -715,10 +718,20 @@ tvheadend.addMuxManually = function(adapterData, satConfStore) {
|
|||
break;
|
||||
|
||||
case 'DVB-C':
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel: 'Frequency (kHz)',
|
||||
name: 'frequency',
|
||||
allowNegative: false,
|
||||
minValue: adapterData.freqMin,
|
||||
maxValue: adapterData.freqMax
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel: 'Symbolrate (baud)',
|
||||
name: 'symbolrate',
|
||||
allowNegative: false
|
||||
allowNegative: false,
|
||||
minValue: adapterData.symrateMin,
|
||||
maxValue: adapterData.symrateMax
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.ComboBox({
|
||||
|
@ -757,10 +770,18 @@ tvheadend.addMuxManually = function(adapterData, satConfStore) {
|
|||
break;
|
||||
|
||||
case 'DVB-S':
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel: 'Frequency (kHz)',
|
||||
name: 'frequency',
|
||||
allowNegative: false
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.NumberField({
|
||||
fieldLabel: 'Symbolrate (baud)',
|
||||
name: 'symbolrate',
|
||||
allowNegative: false
|
||||
allowNegative: false,
|
||||
minValue: adapterData.symrateMin,
|
||||
maxValue: adapterData.symrateMax
|
||||
}));
|
||||
|
||||
items.push(new Ext.form.ComboBox({
|
||||
|
|
Loading…
Add table
Reference in a new issue