Project

General

Profile

Actions

Feature #2981

closed

Prevent from leaving the page when in edit mode for issue, wiki or other

Added by Benjamin Baroukh over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
High
Assignee:
-
Category:
UI
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
2.00 h
Resolution:
Duplicate

Description

I think Redmine should ask the user if he really wants to navigate away from the current page,
a bit like GMail does when you are editing something.

It is really easy to loose the focus on the textarea and to hit backspace and it is really painful to end up on the previous page after spending one hour editing something.

The javascript should be:

onUnload('alert("Do you really want to navigate away from this page, all your changes will be lost")')

on the <body> element of the page when in edit.

Another step further could be continuous saving of the current work, but I guess it is going to be a lot of work because all the drafts should be persisted and displayed somewhere.


Related issues

Is duplicate of Redmine - Feature #2910: Warning on leaving edited issue/wiki page without savingClosed2009-03-05

Actions
Actions #1

Updated by Paul Rivier over 15 years ago

looks like a duplicate of #2910

Actions #2

Updated by Benjamin Baroukh over 15 years ago

Yep, I agree.
I searched through the already existing issues, not enough it appears ;)

Actions #3

Updated by Jean-Philippe Lang over 15 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Closing as a duplicate.
The javascript needs to be a bit more sophisticated so that it doesn't trigger if nothing was changed.

Actions

Also available in: Atom PDF