Add sequential download option to webui
This commit is contained in:
parent
67e9787ba1
commit
59a29d5288
|
@ -126,18 +126,24 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
defaultType: 'checkbox'
|
defaultType: 'checkbox'
|
||||||
});
|
});
|
||||||
this.optionsManager.bind('add_paused', fieldset.add({
|
|
||||||
name: 'add_paused',
|
|
||||||
boxLabel: _('Add In Paused State'),
|
|
||||||
fieldLabel: '',
|
|
||||||
labelSeparator: ''
|
|
||||||
}));
|
|
||||||
this.optionsManager.bind('prioritize_first_last_pieces', fieldset.add({
|
this.optionsManager.bind('prioritize_first_last_pieces', fieldset.add({
|
||||||
name: 'prioritize_first_last_pieces',
|
name: 'prioritize_first_last_pieces',
|
||||||
boxLabel: _('Prioritize First/Last Pieces'),
|
boxLabel: _('Prioritize First/Last Pieces'),
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: ''
|
labelSeparator: ''
|
||||||
}));
|
}));
|
||||||
|
this.optionsManager.bind('sequential_download', fieldset.add({
|
||||||
|
name: 'sequential_download',
|
||||||
|
boxLabel: _('Sequential download'),
|
||||||
|
fieldLabel: '',
|
||||||
|
labelSeparator: ''
|
||||||
|
}));
|
||||||
|
this.optionsManager.bind('add_paused', fieldset.add({
|
||||||
|
name: 'add_paused',
|
||||||
|
boxLabel: _('Add In Paused State'),
|
||||||
|
fieldLabel: '',
|
||||||
|
labelSeparator: ''
|
||||||
|
}));
|
||||||
this.optionsManager.bind('pre_allocate_storage', fieldset.add({
|
this.optionsManager.bind('pre_allocate_storage', fieldset.add({
|
||||||
name: 'pre_allocate_storage',
|
name: 'pre_allocate_storage',
|
||||||
boxLabel: _('Pre-allocate disk space'),
|
boxLabel: _('Pre-allocate disk space'),
|
||||||
|
@ -151,13 +157,14 @@ Deluge.add.OptionsTab = Ext.extend(Ext.form.FormPanel, {
|
||||||
'max_connections_per_torrent','max_download_speed_per_torrent',
|
'max_connections_per_torrent','max_download_speed_per_torrent',
|
||||||
'move_completed', 'move_completed_path',
|
'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', 'sequential_download'];
|
||||||
|
|
||||||
deluge.client.core.get_config_values(keys, {
|
deluge.client.core.get_config_values(keys, {
|
||||||
success: function(config) {
|
success: function(config) {
|
||||||
var options = {
|
var options = {
|
||||||
'file_priorities': [],
|
'file_priorities': [],
|
||||||
'add_paused': config.add_paused,
|
'add_paused': config.add_paused,
|
||||||
|
'sequential_download': config.sequential_download,
|
||||||
'pre_allocate_storage': config.pre_allocate_storage,
|
'pre_allocate_storage': config.pre_allocate_storage,
|
||||||
'download_location': config.download_location,
|
'download_location': config.download_location,
|
||||||
'move_completed': config.move_completed,
|
'move_completed': config.move_completed,
|
||||||
|
|
|
@ -110,6 +110,12 @@ Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
|
||||||
height: 22,
|
height: 22,
|
||||||
boxLabel: _('Prioritize first and last pieces of torrent')
|
boxLabel: _('Prioritize first and last pieces of torrent')
|
||||||
}));
|
}));
|
||||||
|
optMan.bind('sequential_download', fieldset.add({
|
||||||
|
name: 'sequential_download',
|
||||||
|
labelSeparator: '',
|
||||||
|
height: 22,
|
||||||
|
boxLabel: _('Sequential download'),
|
||||||
|
}));
|
||||||
optMan.bind('add_paused', fieldset.add({
|
optMan.bind('add_paused', fieldset.add({
|
||||||
name: 'add_paused',
|
name: 'add_paused',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
|
|
Loading…
Reference in New Issue