Author: damoxc Revision: 4986
Log:
give some default values and limits to the spinners on the options tab
Diff:
Modified: trunk/deluge/ui/web/js/deluge-details.js
===================================================================
--- trunk/deluge/ui/web/js/deluge-details.js 2009-04-02 10:56:49 UTC (rev
4985)
+++ trunk/deluge/ui/web/js/deluge-details.js 2009-04-02 11:01:10 UTC (rev
4986)
@@ -525,7 +525,13 @@
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 @@
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 @@
}, {
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 @@
}, {
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
+ })
}]
}]
}, {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---
