[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',
|
||||
decimalPrecision: 1,
|
||||
minValue: -1,
|
||||
maxValue: 99999,
|
||||
maxValue: 9999999,
|
||||
},
|
||||
});
|
||||
this.fieldsets.bandwidth.add({
|
||||
|
@ -113,7 +113,7 @@ Deluge.details.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
|||
xtype: 'number',
|
||||
decimalPrecision: 1,
|
||||
minValue: -1,
|
||||
maxValue: 99999,
|
||||
maxValue: 9999999,
|
||||
},
|
||||
});
|
||||
this.fieldsets.bandwidth.add({
|
||||
|
|
|
@ -40,7 +40,7 @@ Deluge.preferences.Bandwidth = Ext.extend(Ext.form.FormPanel, {
|
|||
defaultType: 'spinnerfield',
|
||||
defaults: {
|
||||
minValue: -1,
|
||||
maxValue: 99999,
|
||||
maxValue: 9999999,
|
||||
},
|
||||
style: 'margin-bottom: 0px; padding-bottom: 0px;',
|
||||
autoHeight: true,
|
||||
|
|
|
@ -40,7 +40,7 @@ Deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, {
|
|||
value: 58846,
|
||||
decimalPrecision: 0,
|
||||
minValue: -1,
|
||||
maxValue: 99999,
|
||||
maxValue: 65535,
|
||||
})
|
||||
);
|
||||
|
||||
|
|
|
@ -140,7 +140,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||
fieldLabel: _('Session Timeout:'),
|
||||
decimalPrecision: 0,
|
||||
minValue: -1,
|
||||
maxValue: 99999,
|
||||
maxValue: Number.MAX_SAFE_INTEGER || Number.MAX_VALUE,
|
||||
})
|
||||
);
|
||||
om.bind(
|
||||
|
|
Loading…
Reference in New Issue