Hopefully fixed the problem with comments disabled by default in story editor

This commit is contained in:
Tobi Schäfer 2008-05-12 14:31:46 +00:00
parent bbf33a214b
commit af8cb5fd32

View file

@ -249,10 +249,10 @@ Story.prototype.discussions_macro = function(param) {
if (param.as === "editor") {
if (req.data.publish || req.data.save) {
param.checked = req.data.discussions;
} else if (this.commentMode === Story.OPEN) {
param.checked = "checked";
} else if (req.action !== "create") {
param.checked = null;
param.checked = this.commentMode === Story.OPEN ? "checked" : null;
} else {
param.checked || (param.checked = "checked");
}
delete param.as;
param.name = "discussions";