
noreply at edgewall
Sep 20, 2006, 5:38 PM
Post #5 of 5
(610 views)
Permalink
|
|
Re: [The Trac Project] #1437: warn user about losing unsaved changes
[In reply to]
|
|
#1437: warn user about losing unsaved changes ----------------------------------+----------------------------------------- Reporter: dmlee [at] crossroads | Owner: jonas Type: defect | Status: new Priority: normal | Milestone: Component: general | Version: 0.8.1 Severity: trivial | Resolution: Keywords: wiki ticket | ----------------------------------+----------------------------------------- Comment (by mgood): Well, I was hoping there might be a way to avoid the normal JavaScript "confirm()"-style popup dialog and do something in HTML that would give some nicer options. Unfortunately this doesn't seem to be possible, since the "onbeforeunload" event doesn't follow the normal event-handler behavior of returning a boolean whether the event should continue. Instead you return a string which is displayed in a "confirm()"-style popup :( I guess it is possible to check the browser used (so I don't get the message on Epiphany), or add a cookie or session setting to enable this behavior. However I think a better solution would be for browsers to support this natively (Epiphany) or an extension that adds this for all sites. Not that I'm proposing that we write one, but if we can document some available solutions that may be sufficient. -- Ticket URL: <http://trac.edgewall.org/ticket/1437#comment:11> The Trac Project <http://trac.edgewall.org/> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Tickets" group. To post to this group, send email to trac-tickets [at] googlegroups To unsubscribe from this group, send email to trac-tickets-unsubscribe [at] googlegroups For more options, visit this group at http://groups.google.se/group/trac-tickets -~----------~----~----~----~------~----~------~--~---
|