give some default values and limits to the spinners on the options tab

This commit is contained in:
Damien Churchill 2009-04-02 11:01:10 +00:00
parent 672a4debae
commit 0cb662cde8
1 changed files with 28 additions and 4 deletions

View File

@ -525,7 +525,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
cls: 'x-deluge-options-label'
}, {
id: 'max_download_speed',
width: 100
width: 100,
value: -1,
strategy: new Ext.ux.form.Spinner.NumberStrategy({
minValue: -1,
maxValue: 99999,
incrementValue: 1
})
}, {
xtype: 'label',
text: 'KiB/s',
@ -537,7 +543,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
cls: 'x-deluge-options-label'
}, {
id: 'max_upload_speed',
width: 100
width: 100,
value: -1,
strategy: new Ext.ux.form.Spinner.NumberStrategy({
minValue: -1,
maxValue: 99999,
incrementValue: 1
})
}, {
xtype: 'label',
text: 'KiB/s',
@ -550,7 +562,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
}, {
id: 'max_connections',
colspan: 2,
width: 100
width: 100,
value: -1,
strategy: new Ext.ux.form.Spinner.NumberStrategy({
minValue: -1,
maxValue: 99999,
incrementValue: 1
})
}, {
xtype: 'label',
text: _('Max Upload Slots'),
@ -559,7 +577,13 @@ Deluge.Details.Panel = new Ext.TabPanel({
}, {
id: 'max_upload_slots',
colspan: 2,
width: 100
width: 100,
value: -1,
strategy: new Ext.ux.form.Spinner.NumberStrategy({
minValue: -1,
maxValue: 99999,
incrementValue: 1
})
}]
}]
}, {