restore defaults to the options tab

This commit is contained in:
Damien Churchill 2008-10-14 01:06:59 +00:00
parent c6ed7e297b
commit a0eafb1518
1 changed files with 11 additions and 1 deletions

View File

@ -508,7 +508,17 @@ Deluge.Widgets.OptionsPage = new Class({
}, },
clear: function() { clear: function() {
//if (this.form && this.form.reset) this.form.reset(); $$W(this.form.max_download_speed).setValue(0);
$$W(this.form.max_upload_speed).setValue(0);
$$W(this.form.max_connections).setValue(0);
$$W(this.form.max_upload_slots).setValue(0);
$$W(this.form.stop_ratio).setValue(2);
this.form.is_auto_managed.checked = false;
this.form.stop_at_ratio.checked = false;
this.form.remove_at_ratio.checked = false;
this.form.private.checked = false;
this.form.private.disabled = false;
this.form.prioritize_first_last.checked = false;
}, },
reset: function(event) { reset: function(event) {