When one edits a ticket and hits the enter key, the behavior is to preview the ticket. The preview condition is not obvious. Unless the description is changed the only indication is the "#preview" on the end of the URL.

It seems that the behavior is like this to take account of different behavior by different browsers with respect to the enter key.

I propose that the ticket details have the draft.png background when previewing to make it obvious that hitting enter has not submitted the ticket.

This came to my attention when my users started complaining that Trac sometimes lost their changes. They were hitting enter, seeing the preview page come back and (not realising it was a preview) moving on to other work.

I can code a fix for this but I'm not sure what the ticket.cs file should check to tell that the page is in preview (is there a way to list what is in the hdf?). If someone could give me a pointer I'll modify ticket.cs and ticket.css and post a patch.

If it turns out that there is no existing way for the ticket.cs to discriminate between preview and normal display then I'll add code to ticket/web_ui.py to put a variable in the hdf for this purpose.

Regards,
Felix
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to