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
==== WebUI ====
* Add move completed option to add torrent dialog
* #2112: Fix world readable tmp directory in json_api
* #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

View File

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

View File

@ -60,13 +60,29 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
fieldLabel: '',
style: 'padding-bottom: 5px; margin-bottom: 0px;'
});
this.optionsManager.bind('download_location', fieldset.add({
fieldLabel: '',
name: 'download_location',
width: 400,
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({
border: false,
@ -77,7 +93,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
title: _('Allocation'),
border: false,
autoHeight: true,
defaultType: 'radio',
defaultType: 'radio'
});
this.optionsManager.bind('compact_allocation', fieldset.add({
@ -156,6 +172,7 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
getDefaults: function() {
var keys = ['add_paused','compact_allocation','download_location',
'max_connections_per_torrent','max_download_speed_per_torrent',
'move_completed', 'move_completed_path',
'max_upload_slots_per_torrent','max_upload_speed_per_torrent',
'prioritize_first_last_pieces'];
@ -166,6 +183,8 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
'add_paused': config.add_paused,
'compact_allocation': config.compact_allocation,
'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_download_speed': config.max_download_speed_per_torrent,
'max_upload_slots': config.max_upload_slots_per_torrent,