{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3010","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3010/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3010/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3010/events","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3010","id":86305719,"number":3010,"title":"[Production] Unsaved edits do not persist","user":{"login":"NatashaRichter","id":7093086,"avatar_url":"https://avatars.githubusercontent.com/u/7093086?v=3","gravatar_id":"","url":"https://api.github.com/users/NatashaRichter","html_url":"https://github.com/NatashaRichter","followers_url":"https://api.github.com/users/NatashaRichter/followers","following_url":"https://api.github.com/users/NatashaRichter/following{/other_user}","gists_url":"https://api.github.com/users/NatashaRichter/gists{/gist_id}","starred_url":"https://api.github.com/users/NatashaRichter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NatashaRichter/subscriptions","organizations_url":"https://api.github.com/users/NatashaRichter/orgs","repos_url":"https://api.github.com/users/NatashaRichter/repos","events_url":"https://api.github.com/users/NatashaRichter/events{/privacy}","received_events_url":"https://api.github.com/users/NatashaRichter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/2%20-%20ready","name":"2 - ready","color":"CCCCCC"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/bug:%20production","name":"bug: production","color":"e11d21"},{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/labels/priority%20-%20high","name":"priority - high","color":"FF810F"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/38","html_url":"https://github.com/CenterForOpenScience/osf.io/milestones/Issue%20sprint","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/milestones/38/labels","id":1159027,"number":38,"title":"Issue sprint","description":null,"creator":{"login":"samanehsan","id":6414394,"avatar_url":"https://avatars.githubusercontent.com/u/6414394?v=3","gravatar_id":"","url":"https://api.github.com/users/samanehsan","html_url":"https://github.com/samanehsan","followers_url":"https://api.github.com/users/samanehsan/followers","following_url":"https://api.github.com/users/samanehsan/following{/other_user}","gists_url":"https://api.github.com/users/samanehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/samanehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samanehsan/subscriptions","organizations_url":"https://api.github.com/users/samanehsan/orgs","repos_url":"https://api.github.com/users/samanehsan/repos","events_url":"https://api.github.com/users/samanehsan/events{/privacy}","received_events_url":"https://api.github.com/users/samanehsan/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":11,"state":"open","created_at":"2015-06-10T18:03:08Z","updated_at":"2015-06-19T18:55:46Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2015-06-08T19:46:58Z","updated_at":"2015-06-22T19:27:22Z","closed_at":null,"body":"## Steps\r\n\r\n1. Log in to osf.io\r\n2. Navigate to a project for which you have admin or read-write permissions\r\n3. Go to the files tab and click a file name (must be text file) to view the file in the file detail page\r\n4. Toggle Edit mode and type a few words \r\n5. Without saving, untoggle Edit and navigate away from the page again by going to another page on the OSF (Dashboard, Files tab of the project, etc).\r\n6. Return to the file.\r\n7. Check to see if your unsaved changes persist (the previously typed words are still there) when you toggle edit mode\r\n\r\n\r\n## Expected behavior\r\n\r\nI expect that my unsaved edits will persist when I toggle edit mode.\r\n\r\n## Actual behavior\r\n\r\nMy unsaved edits do not persist.\r\n\r\n## Screenshots\r\n\r\n![screen shot 2015-06-08 at 3 30 41 pm](https://cloud.githubusercontent.com/assets/7093086/8043598/251b37e4-0df5-11e5-8377-8bad21655893.png)\r\n\r\n![screen shot 2015-06-08 at 3 31 20 pm](https://cloud.githubusercontent.com/assets/7093086/8043622/42089ae0-0df5-11e5-931d-fa35894d56c0.png)\r\n"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/114228510","html_url":"https://github.com/CenterForOpenScience/osf.io/issues/3010#issuecomment-114228510","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/3010","id":114228510,"user":{"login":"samanehsan","id":6414394,"avatar_url":"https://avatars.githubusercontent.com/u/6414394?v=3","gravatar_id":"","url":"https://api.github.com/users/samanehsan","html_url":"https://github.com/samanehsan","followers_url":"https://api.github.com/users/samanehsan/followers","following_url":"https://api.github.com/users/samanehsan/following{/other_user}","gists_url":"https://api.github.com/users/samanehsan/gists{/gist_id}","starred_url":"https://api.github.com/users/samanehsan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samanehsan/subscriptions","organizations_url":"https://api.github.com/users/samanehsan/orgs","repos_url":"https://api.github.com/users/samanehsan/repos","events_url":"https://api.github.com/users/samanehsan/events{/privacy}","received_events_url":"https://api.github.com/users/samanehsan/received_events","type":"User","site_admin":false},"created_at":"2015-06-22T19:27:22Z","updated_at":"2015-06-22T19:27:22Z","body":"After looking into this issue, I found that the `FileEditor` in `editor.js` loads twice in Firefox, and the unsaved changes are gone after that second load. Still can't figure out where/why that reload is happening. Going to defer this for now since the behavior is so inconsistent, but feel free to change back to \"ready\" if someone wants to look into this further. "}}