/comment_action
comment action

Sourcecode in Story/actions.js:
1:   function comment_action() {
2:      // restore any rescued text
3:      if (session.data.rescuedText)
4:         restoreRescuedText();
5:      
6:      if (req.data.cancel)
7:         res.redirect(this.href());
8:      else if (req.data.save) {
9:         try {
10:           var result = this.evalComment(req.data, session.user);
11:           res.message = result.toString();
12:           res.redirect(this.href() + "#" + result.id);
13:        } catch (err) {
14:           res.message = err.toString();
15:        }
16:     }
17:     
18:     res.data.action = this.href(req.action);
19:     res.data.title = this.site.title;
20:     if (this.title)
21:        res.data.title += " - " + encode(this.title);
22:     res.data.body = this.renderSkinAsString("comment");
23:     this.site.renderSkin("page");
24:     // increment read-counter
25:     this.incrementReadCounter();
26:     return;
27:  }