setting this.discussions to 1 by default (ie. if number cannot be parsed) in function evalStory().
otherwise weblogs with custom skins suddenly get their comment features disabled.
This commit is contained in:
parent
aeb6e84173
commit
e8949c7029
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ function evalStory(param,modifier) {
|
|||
// assign those properties that can be stored anyway
|
||||
var editableby = parseInt(param.editableby,10);
|
||||
this.editableby = (modifier == this.creator && !isNaN(editableby) ? editableby : null);
|
||||
this.discussions = !isNaN(parseInt(param.discussions)) ? parseInt(param.discussions,10) : 0;
|
||||
this.discussions = !isNaN(parseInt(param.discussions)) ? parseInt(param.discussions,10) : 1;
|
||||
// loop through param and collect content properties
|
||||
var cont = this.getContent();
|
||||
for (var i in param) {
|
||||
|
|
Loading…
Add table
Reference in a new issue