small change to get the current theme and set it in the select box

This commit is contained in:
Damien Churchill 2008-07-30 21:19:16 +00:00
parent 7dc16ec20b
commit d9b17ec2af
1 changed files with 9 additions and 0 deletions

View File

@ -785,6 +785,9 @@ Deluge.Widgets.WebUIPreferences = new Class({
this.form.theme.disabled = true;
else
this.form.theme.disabled = false;
var theme = this.form.theme.getElement('option[value="' + Cookie.read('theme') + '"]')
theme.selected = true
this.form.template.addEvent('change', function(e) {
if (this.form.template.value != 'ajax') {
@ -893,6 +896,12 @@ Deluge.Widgets.PreferencesWindow = new Class({
},
applied: function(event) {
var config = {}
/*this.categories.each(function(category) {
alert(JSON.encode(category.changed));
config = $merge(config, category.changed)
});
alert(JSON.encode(config));*/
this.webui.apply();
},