6.0.0-alpha12
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
6/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#4271] Prompt on closing message windowr
*
Your Email Address
*
Spam protection
Enter the letters below:
._..___. __ __.. . | _/ / `(__ |__| _|_./__.\__..__)| |
Comment
> It happens to all of us- the accidental close of a compose window by > 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.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers