2011-02-09 Ojan Vafai <ojan@chromium.org>
Reviewed by Adam Barth.
only erase draft comments after publish is successful
https://bugs.webkit.org/show_bug.cgi?id=54163
If there is a conflict or 500, then draft comments will survive.
One drawback here is that the form post is now to the iframe,
so to break out of the iframe we redirect to the bug page, which
loses the information of who the email was sent to.
Once WebKit supports seamless iframes we should be able to avoid
the redirect.
* code-review.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@78310
268f45cc-cd09-0410-ab3c-
d52691b4dbfc