* Fixed skin name of poll editor

* Fixed condition for setting the site modification date on comment update (hopefully this is correct...)
 * Replace site.lastUpdate with site.modified (still needs some more care - what do we do with lastUpdate anyway?)
This commit is contained in:
Tobi Schäfer 2008-04-23 08:38:59 +00:00
parent b006cbdf0b
commit 0296ff4a88
6 changed files with 10 additions and 11 deletions

View file

@ -89,9 +89,8 @@ Comment.prototype.update = function(data) {
if (this.site.commentMode === Site.MODERATED ||
this.story.commentMode === Site.MODERATED) {
this.mode = Comment.PENDING;
} else if (this.story.status === Story.PRIVATE &&
this.getDelta(data) > 50) {
this.site.lastUpdate = new Date;
} else if (this.story.status !== Story.PRIVATE && this.getDelta(data) > 50) {
this.site.modified = new Date;
}
this.clearCache();
this.touch();