return [false, false]; /* [disabled, default_value] */
return [true];
},
- get: function(value, ui) {
+ applyChanges: function(value, ui) {
if(ui.setBeepOnMention)
ui.setBeepOnMention(value);
}
[11, "STYLE_HUE", "Adjust user interface hue", function() {
return {class_: qwebirc.config.HueOption, default_: 210};
}, {
- get: function(value, ui) {
+ applyChanges: function(value, ui) {
ui.setModifiableStylesheetValues(value, 0, 0);
}
}],
render: function() {
this.event("render", this.mainElement);
},
- get: function(value) {
- this.event("get", [value, this.parentObject.optionObject.ui]);
- return value;
+ applyChanges: function() {
+ this.event("applyChanges", [this.get(), this.parentObject.optionObject.ui]);
},
event: function(name, x) {
if(!$defined(this.option.extras))
this.parent();
},
get: function() {
- return this.parent(this.mainElement.value);
+ return this.mainElement.value;
}
});
slider.addEvent("change", function(step) {
this.value = step;
- this.get();
+ this.applyChanges();
}.bind(this));
this.mainElement = i;
this.parent();
},
get: function() {
- return this.parent(this.value);
+ return this.value;
},
cancel: function() {
this.value = this.startValue;
- this.get();
+ this.applyChanges();
}
});
this.parent();
},
get: function() {
- return this.parent(this.mainElement.checked);
+ return this.mainElement.checked;
}
});
var x = this.elements[i];
if(x.checked) {
this.option.position = i;
- return this.parent(this.option.options[i][1]);
+ return this.option.options[i][1];
}
}
}
var box = x[1];
this.optionObject.setValue(option, box.get());
}.bind(this));
+ this.boxList.forEach(function(x) {
+ x[1].applyChanges();
+ }.bind(this));
this.optionObject.flush();
},
cancel: function() {