/edit_action
edit action

Sourcecode in Comment/actions.js:
1:   function edit_action() {
2:      // restore any rescued text
3:      if (session.data.rescuedText)
4:         restoreRescuedText();
5:      
6:      if (req.data.cancel)
7:         res.redirect(this.story.href());
8:      else if (req.data.save) {
9:         try {
10:           res.message = this.updateComment(req.data);
11:           res.redirect(this.story.href() + "#" + this._id);
12:        } catch (err) {
13:           res.message = err.toString();
14:        }
15:     }
16:     
17:     res.data.action = this.href(req.action);
18:     res.data.title = this.site.title;
19:     if (this.story.title)
20:        res.data.title += " - " + encode(this.story.title);
21:     res.data.body = this.renderSkinAsString("edit");
22:     this.site.renderSkin("page");
23:     return;
24:  }