[WebUI] use rational maxValue
Signed-off-by: Xuefer <xuefer@gmail.com> Closes: https://github.com/deluge-torrent/deluge/pull/422
This commit is contained in:
parent
a83ac65ab6
commit
81116a63ca
|
@ -86,7 +86,7 @@ Deluge.details.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
xtype: 'number',
|
xtype: 'number',
|
||||||
decimalPrecision: 1,
|
decimalPrecision: 1,
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999,
|
maxValue: 9999999,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.fieldsets.bandwidth.add({
|
this.fieldsets.bandwidth.add({
|
||||||
|
@ -113,7 +113,7 @@ Deluge.details.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
xtype: 'number',
|
xtype: 'number',
|
||||||
decimalPrecision: 1,
|
decimalPrecision: 1,
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999,
|
maxValue: 9999999,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.fieldsets.bandwidth.add({
|
this.fieldsets.bandwidth.add({
|
||||||
|
|
|
@ -40,7 +40,7 @@ Deluge.preferences.Bandwidth = Ext.extend(Ext.form.FormPanel, {
|
||||||
defaultType: 'spinnerfield',
|
defaultType: 'spinnerfield',
|
||||||
defaults: {
|
defaults: {
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999,
|
maxValue: 9999999,
|
||||||
},
|
},
|
||||||
style: 'margin-bottom: 0px; padding-bottom: 0px;',
|
style: 'margin-bottom: 0px; padding-bottom: 0px;',
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
|
|
|
@ -40,7 +40,7 @@ Deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, {
|
||||||
value: 58846,
|
value: 58846,
|
||||||
decimalPrecision: 0,
|
decimalPrecision: 0,
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999,
|
maxValue: 65535,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -140,7 +140,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||||
fieldLabel: _('Session Timeout:'),
|
fieldLabel: _('Session Timeout:'),
|
||||||
decimalPrecision: 0,
|
decimalPrecision: 0,
|
||||||
minValue: -1,
|
minValue: -1,
|
||||||
maxValue: 99999,
|
maxValue: Number.MAX_SAFE_INTEGER || Number.MAX_VALUE,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
om.bind(
|
om.bind(
|
||||||
|
|
Loading…
Reference in New Issue