{"action":"closed","issue":{"url":"https://api.github.com/repos/jshawl/gistalt/issues/47","labels_url":"https://api.github.com/repos/jshawl/gistalt/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/jshawl/gistalt/issues/47/comments","events_url":"https://api.github.com/repos/jshawl/gistalt/issues/47/events","html_url":"https://github.com/jshawl/gistalt/issues/47","id":67432557,"number":47,"title":"add alert for lost changes","user":{"login":"duncangraham","id":865298,"avatar_url":"https://avatars.githubusercontent.com/u/865298?v=3","gravatar_id":"","url":"https://api.github.com/users/duncangraham","html_url":"https://github.com/duncangraham","followers_url":"https://api.github.com/users/duncangraham/followers","following_url":"https://api.github.com/users/duncangraham/following{/other_user}","gists_url":"https://api.github.com/users/duncangraham/gists{/gist_id}","starred_url":"https://api.github.com/users/duncangraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncangraham/subscriptions","organizations_url":"https://api.github.com/users/duncangraham/orgs","repos_url":"https://api.github.com/users/duncangraham/repos","events_url":"https://api.github.com/users/duncangraham/events{/privacy}","received_events_url":"https://api.github.com/users/duncangraham/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"duncangraham","id":865298,"avatar_url":"https://avatars.githubusercontent.com/u/865298?v=3","gravatar_id":"","url":"https://api.github.com/users/duncangraham","html_url":"https://github.com/duncangraham","followers_url":"https://api.github.com/users/duncangraham/followers","following_url":"https://api.github.com/users/duncangraham/following{/other_user}","gists_url":"https://api.github.com/users/duncangraham/gists{/gist_id}","starred_url":"https://api.github.com/users/duncangraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duncangraham/subscriptions","organizations_url":"https://api.github.com/users/duncangraham/orgs","repos_url":"https://api.github.com/users/duncangraham/repos","events_url":"https://api.github.com/users/duncangraham/events{/privacy}","received_events_url":"https://api.github.com/users/duncangraham/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-04-09T19:22:33Z","updated_at":"2015-04-12T00:16:52Z","closed_at":"2015-04-12T00:16:52Z","body":"I just refreshed a page and lost a few paragraphs of changes. It felt awful, and made me really angry at the product. This feeling can't happen to others.\r\n\r\nIf you've made any changes without saving, you shouldn't be able to close the page without seeing an alert. this can be annoying at times but annoyance is better than someone feeling angry that they've lost hard work.\r\n\r\nI'll be using [Sweet Alert](http://tristanedwards.me/sweetalert) to implement this change\r\n\r\n--\r\nin a later version we can add a flag saying, 'never show these alerts again' if it seems worthwhile.\r\n"}}