| Summary | Prompt on closing message windowr |
| Queue | IMP |
| Queue Version | HEAD |
| Type | Enhancement |
| State | Resolved |
| Priority | 2. Medium |
| Owners | |
| Requester | phyre (at) rogers (dot) com |
| Created | 8/9/06 (7178 days ago) |
| Due | |
| Updated | 8/10/06 (7177 days ago) |
| Assigned | |
| Resolved | 8/9/06 (7178 days ago) |
| Milestone | |
| Patch | No |
Summary ⇒ Prompt on closing message windowrr
State ⇒ Resolved
New Attachment: onclose.patch
cancel button. It resulted in a prompt on submit/draft and two
prompts on cancel.
That should be fixed in this new patch. see this patch for a properly
working copy. It disabled it just prior to the submission success and
only if the cancel prompt is accepted.
-M
Priority ⇒ 2. Medium
Type ⇒ Enhancement
Summary ⇒ Prompt on closing message window
Queue ⇒ IMP
State ⇒ New
clicking the wrong one, pressing the key combination to the wrong
window, or so on. People put a lot of work into messages.
This simple addition prevents that:
imp/templates/compose/compose.js
I added this just above the 'function confirmCancel()' at the top of
the file within the script tags. In theory, it could go anywhere.
------------
window.onbeforeunload = bunload;
function bunload(){
dontleave="Are you sure you want to close this window?
Closing this window will discard any unsaved changes.";
return dontleave;
}
-------------
This will prompt the user upon closure. I have tested this on FireFox
and Internet Explorer.
A small addition, but an important one.