We added a couple of more parameters comment_removeprompt (deletes the comment box) and comment_postandremoveprompt (posts the message and deletes the comment box).
This is useful in some cases where the comment box is needed only once, e.g. in meeting minutes. Each meeting has a box for entering minutes, action items, etc, and once the scribe submits it, the form goes away, which keeps the page nice and tidy. There are many other places where we use this.
The changes required to Comment.pm are very minimal: copy _nth() to _delete_nth(), make the changes and call it in the correct places.
Thought that I'd share this with everybody.
Pankaj's implementation suffers from the fact that
are not cleanly decoupled. The implementation also requires tests and documentation of the new options. Apart from that, it's a jolly good idea.
This entry is marked "Waiting for release". How's the test and docs?