fix setting prioritize first/last from the options tab

This commit is contained in:
Damien Churchill 2009-06-01 23:46:35 +00:00
parent bf3b0bf5c6
commit 502fa6983e
2 changed files with 10 additions and 1 deletions

View File

@ -410,6 +410,15 @@ Ext.deluge.details.OptionsTab = Ext.extend(Ext.form.FormPanel, {
onApply: function() { onApply: function() {
var changed = this.optionsManager.getChanged(this.torrentId); var changed = this.optionsManager.getChanged(this.torrentId);
if (!Ext.isEmpty(changed['prioritize_first_last'])) {
var value = changed['prioritize_first_last'];
Deluge.Client.core.set_torrent_prioritize_first_last(this.torrentId, value, {
success: function() {
this.optionsManager.updateOption(this.torrentId, 'prioritize_first_last', value);
},
scope: this
});
}
Deluge.Client.core.set_torrent_options([this.torrentId], changed, { Deluge.Client.core.set_torrent_options([this.torrentId], changed, {
success: function() { success: function() {
this.optionsManager.updateOptions(this.torrentId, changed); this.optionsManager.updateOptions(this.torrentId, changed);

File diff suppressed because one or more lines are too long