Add move complete location to webui add torrent dialog.

This commit is contained in:
Chase Sterling 2013-01-04 18:43:06 -05:00
parent ffcfc060e9
commit 8cb55983bb
3 changed files with 23 additions and 3 deletions

View File

@ -83,6 +83,7 @@
* #1397: Add support for -s STATE in info command * #1397: Add support for -s STATE in info command
==== WebUI ==== ==== WebUI ====
* Add move completed option to add torrent dialog
* #2112: Fix world readable tmp directory in json_api * #2112: Fix world readable tmp directory in json_api
* #2069: Fix login window layout problem when using larger than default font size * #2069: Fix login window layout problem when using larger than default font size
* #1890: Fix columns in files and peers view could use some spacing * #1890: Fix columns in files and peers view could use some spacing

View File

@ -39,7 +39,7 @@ Deluge.add.OptionsPanel = Ext.extend(Ext.TabPanel, {
region: 'south', region: 'south',
margins: '5 5 5 5', margins: '5 5 5 5',
activeTab: 0, activeTab: 0,
height: 220, height: 265,
initComponent: function() { initComponent: function() {
Deluge.add.OptionsPanel.superclass.initComponent.call(this); Deluge.add.OptionsPanel.superclass.initComponent.call(this);

View File

@ -60,13 +60,29 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
fieldLabel: '', fieldLabel: '',
style: 'padding-bottom: 5px; margin-bottom: 0px;' style: 'padding-bottom: 5px; margin-bottom: 0px;'
}); });
this.optionsManager.bind('download_location', fieldset.add({ this.optionsManager.bind('download_location', fieldset.add({
fieldLabel: '', fieldLabel: '',
name: 'download_location', name: 'download_location',
width: 400, width: 400,
labelSeparator: '' labelSeparator: ''
})); }));
var fieldset = this.add({
xtype: 'fieldset',
title: _('Move Completed Location'),
border: false,
autoHeight: true,
defaultType: 'togglefield',
labelWidth: 1,
fieldLabel: '',
style: 'padding-bottom: 5px; margin-bottom: 0px;'
});
var field = fieldset.add({
fieldLabel: '',
name: 'move_completed_path',
width: 425
});
this.optionsManager.bind('move_completed', field.toggle)
this.optionsManager.bind('move_completed_path', field.input)
var panel = this.add({ var panel = this.add({
border: false, border: false,
@ -77,7 +93,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
title: _('Allocation'), title: _('Allocation'),
border: false, border: false,
autoHeight: true, autoHeight: true,
defaultType: 'radio', defaultType: 'radio'
}); });
this.optionsManager.bind('compact_allocation', fieldset.add({ this.optionsManager.bind('compact_allocation', fieldset.add({
@ -156,6 +172,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
getDefaults: function() { getDefaults: function() {
var keys = ['add_paused','compact_allocation','download_location', var keys = ['add_paused','compact_allocation','download_location',
'max_connections_per_torrent','max_download_speed_per_torrent', 'max_connections_per_torrent','max_download_speed_per_torrent',
'move_completed', 'move_completed_path',
'max_upload_slots_per_torrent','max_upload_speed_per_torrent', 'max_upload_slots_per_torrent','max_upload_speed_per_torrent',
'prioritize_first_last_pieces']; 'prioritize_first_last_pieces'];
@ -166,6 +183,8 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
'add_paused': config.add_paused, 'add_paused': config.add_paused,
'compact_allocation': config.compact_allocation, 'compact_allocation': config.compact_allocation,
'download_location': config.download_location, 'download_location': config.download_location,
'move_completed': config.move_completed,
'move_completed_path': config.move_completed_path,
'max_connections': config.max_connections_per_torrent, 'max_connections': config.max_connections_per_torrent,
'max_download_speed': config.max_download_speed_per_torrent, 'max_download_speed': config.max_download_speed_per_torrent,
'max_upload_slots': config.max_upload_slots_per_torrent, 'max_upload_slots': config.max_upload_slots_per_torrent,