#192: WebComment: prevent loss of unsubmitted comments when clicking page link
-------------------------+--------------------------------------------------
Reporter: jcaffaro | Owner: jcaffaro
Type: enhancement | Status: new
Priority: critical | Milestone: v1.0
Component: WebComment | Version: v0.99.1
Keywords: |
-------------------------+--------------------------------------------------
When writing comments/reviews, nothing is preventing users from
accidentally clicking on a link of the page, hence losing the text in the
comment/review text area. In particular users might be tempted to click on
the "Subscribe" link (instead of ticking the subscription checkbox below
the comment text area).
A simple technique already introduced in WebSubmit would be to override
the {{{window.onbeforeunload}}} function to ask user is she really wants
to continue.
This option would work for users having Javascript enabled. Other options
that would catch the most probable scenario (ie. click on the "Subscribe"
link) could be:
* Make the "subscribe" link less visible (it is now strongly
highlighted).
* Make the subscription checkbox more visible (so that commenters will
use this option).
* Move the "subscribe" link at the top of the discussion, so that it is
less likely that users will choose this option (would work only when there
are already a few comments on the page).
* Use a submit button instead of the "subscribe" link so that the text
area could be sent to the server at the same time and recovered in the
text area.
--
Ticket URL: <http://invenio-software.org/ticket/192>
Invenio <http://invenio-software.org>