Author: damoxc
Revision: 5877
Log:
fixes #1046, changing the option name in the ui rather than the core
which would break the other uis
Diff:
Modified: branches/1.2_RC/deluge/ui/web/js/Deluge.Details.Options.js
===================================================================
--- branches/1.2_RC/deluge/ui/web/js/Deluge.Details.Options.js 2009-10-27
03:08:47 UTC (rev 5876)
+++ branches/1.2_RC/deluge/ui/web/js/Deluge.Details.Options.js 2009-10-27
09:12:22 UTC (rev 5877)
@@ -62,7 +62,7 @@
'max_upload_speed': -1,
'max_connections': -1,
'max_upload_slots': -1,
- 'is_auto_managed': false,
+ 'auto_managed': false,
'stop_at_ratio': false,
'stop_ratio': 2.0,
'remove_at_ratio': false,
@@ -207,7 +207,7 @@
}
});
- this.fields.is_auto_managed = this.fieldsets.queue.add({
+ this.fields.auto_managed = this.fieldsets.queue.add({
xtype: 'checkbox',
fieldLabel: '',
labelSeparator: '',
@@ -419,6 +419,7 @@
this.fields['private'].setValue(torrent['private']);
this.fields['private'].setDisabled(true);
delete torrent['private'];
+ torrent['auto_managed'] = torrent['is_auto_managed'];
this.optionsManager.setDefault(torrent);
var stop_at_ratio = this.optionsManager.get('stop_at_ratio');
this.fields.remove_at_ratio.setDisabled(!stop_at_ratio);
Modified: trunk/deluge/ui/web/js/Deluge.Details.Options.js
===================================================================
--- trunk/deluge/ui/web/js/Deluge.Details.Options.js 2009-10-27 03:08:47 UTC
(rev 5876)
+++ trunk/deluge/ui/web/js/Deluge.Details.Options.js 2009-10-27 09:12:22 UTC
(rev 5877)
@@ -62,7 +62,7 @@
'max_upload_speed': -1,
'max_connections': -1,
'max_upload_slots': -1,
- 'is_auto_managed': false,
+ 'auto_managed': false,
'stop_at_ratio': false,
'stop_ratio': 2.0,
'remove_at_ratio': false,
@@ -207,7 +207,7 @@
}
});
- this.fields.is_auto_managed = this.fieldsets.queue.add({
+ this.fields.auto_managed = this.fieldsets.queue.add({
xtype: 'checkbox',
fieldLabel: '',
labelSeparator: '',
@@ -419,6 +419,7 @@
this.fields['private'].setValue(torrent['private']);
this.fields['private'].setDisabled(true);
delete torrent['private'];
+ torrent['auto_managed'] = torrent['is_auto_managed'];
this.optionsManager.setDefault(torrent);
var stop_at_ratio = this.optionsManager.get('stop_at_ratio');
this.fields.remove_at_ratio.setDisabled(!stop_at_ratio);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---