small change to get the current theme and set it in the select box
This commit is contained in:
parent
7dc16ec20b
commit
d9b17ec2af
|
@ -786,6 +786,9 @@ Deluge.Widgets.WebUIPreferences = new Class({
|
|||
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') {
|
||||
this.form.theme.disabled = true;
|
||||
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue