{"action":"opened","issue":{"url":"https://api.github.com/repos/StraboSpot/strabo-mobile/issues/142","labels_url":"https://api.github.com/repos/StraboSpot/strabo-mobile/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/StraboSpot/strabo-mobile/issues/142/comments","events_url":"https://api.github.com/repos/StraboSpot/strabo-mobile/issues/142/events","html_url":"https://github.com/StraboSpot/strabo-mobile/issues/142","id":81172415,"number":142,"title":"Save current spot when switching between tabs","user":{"login":"jessica-azgs","id":1493985,"avatar_url":"https://avatars.githubusercontent.com/u/1493985?v=3","gravatar_id":"","url":"https://api.github.com/users/jessica-azgs","html_url":"https://github.com/jessica-azgs","followers_url":"https://api.github.com/users/jessica-azgs/followers","following_url":"https://api.github.com/users/jessica-azgs/following{/other_user}","gists_url":"https://api.github.com/users/jessica-azgs/gists{/gist_id}","starred_url":"https://api.github.com/users/jessica-azgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jessica-azgs/subscriptions","organizations_url":"https://api.github.com/users/jessica-azgs/orgs","repos_url":"https://api.github.com/users/jessica-azgs/repos","events_url":"https://api.github.com/users/jessica-azgs/events{/privacy}","received_events_url":"https://api.github.com/users/jessica-azgs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-26T22:51:12Z","updated_at":"2015-05-26T22:51:12Z","closed_at":null,"body":"Temporarily save spot values in CurrentSpot service when when switching between tabs in a spot. Already done for Details, Notes and Rock Description tabs. Use $scope.switchTabs method. Currently geometry, links, groups, and group members are not written to the spot until the Save button is clicked (and code enters $scope.submit). Need to write these to the spot when tab is switch or when the save button is clicked. However, the spot should not be written to local storage until save button is pressed. That means if you navigate off of the pages for a particular spot CurrentSpot is cleared out (currently done is spots.js and map.js)."}}