Fix comment turds.

Review Request #2605 — Created Sept. 22, 2011 and submitted

Information

Review Board

Reviewers

Fix comment turds.

If you click "Add comment", start writing something, and then change your mind,
it's only natural to cancel the comment addition. The comment will be cancelled,
but it leaves a turd on the review list with your name and an edit pencil.

This change hooks up the inline editor cancel event to check if the initial
value was empty, and if so, remove the comment item.
Created new comments and then cancelled. Edited existing comments and then
cancelled. Made sure that saving worked correctly too (both with empty
comments and non-empty comments).
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-1.6.x (9674477)