php 5.3+ required
make the discard draft button an <a> which links to a new conversation controller action (discard). this way, the controller can handle deletion of a draft conversation rather than the javascript. unsaved conversations are also discarded in this way; this is important for the Attachments plugin, which needs to run code to delete attachments from the filesystem even if a conversation is never saved.