Github user benkeen commented on the pull request:
https://github.com/apache/couchdb-fauxton/pull/263#issuecomment-73905992
Yes, but the beforeUnload code you noted only gets executed if a
.navigate() fires; if an `<a>` just ends up firing its `href="#whatever"` the
before unload methods don't get called.
Here's some steps to test this ticket:
- open up the full page editor on any doc
- make a small change
- click something in the primary nav (e.g. Active Tasks).
In the current build, it just redirects there. With this ticket, it prompts
you to save.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---