Comment 1 for bug 469902

Revision history for this message
Björn Tillenius (bjornt) wrote : Re: [Bug 469902] [NEW] adding an attachment deletes unsaved comment (bugs page)

On Mon, Nov 02, 2009 at 02:06:46AM -0000, zsquareplusc wrote:
> Public bug reported:
>
> I was typing in a comment to a bug when i realized that i want to attach
> a logfile. So i clicked on "Add" in the sidebar. This opened a new page
> with an empty comment field

Which browser are you using? The comment field on the new page should
have the comment you had typed in on the bug page.

    status incomplete

> It would be nice if it would at least warn the user when there is an
> unsaved comment.

We don't warn, since it's designed so that you won't loose the comment.
Not sure why that didn't work for you.

> With all the nice AJAX features added recently i actually expected that
> some field pops up where i can add my file. Instead it loaded a new
> page. Well whatever, i just don't like to type things twice :/

Feel like contributing a patch? :) Launchpad is open source, you know!
The reason it's not AJAX, is that it was simply too much work to do it,
we didn't have enough time. Javascript can't (for good reasons) read
files from the local disk, thus uploading files via Javascript is far
from trivial. That's why we made the decision to keep it as a separate
form, but still retain the comment you typed, in case someone wanted to
attach a file in the middle. I don't know why that didn't work for you.