mozilla/kuma — pull request #547 by darkwing (2012-08-28 15:09:38+00:00)
Title: fix bug 773672 - Allow restoring of drafts when user leaves page

To verify:

1. Go to either the "/new", "/edit" or "/translate" pages and type anything into the editor
2. Wait 5 seconds
3. Refresh the page

- You should see a DIV above the editor with a link to allow you to restore content

4. Don't click the link, refresh the page
5. This time click the link; the draft content should be placed into the editor
6. Save
7. Click back; the editor should load but the DIV shouldn't show because its draft contents were cleared upon save.