[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:
Xuefer 2016-09-05 11:38:15 +08:00 committed by Calum Lind
parent a83ac65ab6
commit 81116a63ca
No known key found for this signature in database
GPG Key ID: 90597A687B836BA3
4 changed files with 5 additions and 5 deletions

View File

@ -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({

View File

@ -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,

View File

@ -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,
}) })
); );

View File

@ -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(