{"action":"opened","number":114,"pull_request":{"url":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114","id":29909764,"html_url":"https://github.com/simsalabim/sisyphus/pull/114","diff_url":"https://github.com/simsalabim/sisyphus/pull/114.diff","patch_url":"https://github.com/simsalabim/sisyphus/pull/114.patch","issue_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/114","number":114,"state":"open","locked":false,"title":"Added onBeforeSave hook","user":{"login":"gabrieljenik","id":4942495,"avatar_url":"https://avatars.githubusercontent.com/u/4942495?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrieljenik","html_url":"https://github.com/gabrieljenik","followers_url":"https://api.github.com/users/gabrieljenik/followers","following_url":"https://api.github.com/users/gabrieljenik/following{/other_user}","gists_url":"https://api.github.com/users/gabrieljenik/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrieljenik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrieljenik/subscriptions","organizations_url":"https://api.github.com/users/gabrieljenik/orgs","repos_url":"https://api.github.com/users/gabrieljenik/repos","events_url":"https://api.github.com/users/gabrieljenik/events{/privacy}","received_events_url":"https://api.github.com/users/gabrieljenik/received_events","type":"User","site_admin":false},"body":"I think was usefull if you want to save all fields and control when to save (with a button, for example). \r\nSaving is triggered automatically on protect(), so if you want to save data manually, you will need to initialize onBeforeSave to return false. Before manual save, onBeforeSave should be set to return true.","created_at":"2015-02-24T16:03:05Z","updated_at":"2015-02-24T16:03:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"097a372c46b14245c4d9c9230eef8e4288b76b19","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114/commits","review_comments_url":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114/comments","review_comment_url":"https://api.github.com/repos/simsalabim/sisyphus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/114/comments","statuses_url":"https://api.github.com/repos/simsalabim/sisyphus/statuses/ea1bb403f51c357cf81864ffac5ac95d417a87e4","head":{"label":"gabrieljenik:patch-3","ref":"patch-3","sha":"ea1bb403f51c357cf81864ffac5ac95d417a87e4","user":{"login":"gabrieljenik","id":4942495,"avatar_url":"https://avatars.githubusercontent.com/u/4942495?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrieljenik","html_url":"https://github.com/gabrieljenik","followers_url":"https://api.github.com/users/gabrieljenik/followers","following_url":"https://api.github.com/users/gabrieljenik/following{/other_user}","gists_url":"https://api.github.com/users/gabrieljenik/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrieljenik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrieljenik/subscriptions","organizations_url":"https://api.github.com/users/gabrieljenik/orgs","repos_url":"https://api.github.com/users/gabrieljenik/repos","events_url":"https://api.github.com/users/gabrieljenik/events{/privacy}","received_events_url":"https://api.github.com/users/gabrieljenik/received_events","type":"User","site_admin":false},"repo":{"id":29845174,"name":"sisyphus","full_name":"gabrieljenik/sisyphus","owner":{"login":"gabrieljenik","id":4942495,"avatar_url":"https://avatars.githubusercontent.com/u/4942495?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrieljenik","html_url":"https://github.com/gabrieljenik","followers_url":"https://api.github.com/users/gabrieljenik/followers","following_url":"https://api.github.com/users/gabrieljenik/following{/other_user}","gists_url":"https://api.github.com/users/gabrieljenik/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrieljenik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrieljenik/subscriptions","organizations_url":"https://api.github.com/users/gabrieljenik/orgs","repos_url":"https://api.github.com/users/gabrieljenik/repos","events_url":"https://api.github.com/users/gabrieljenik/events{/privacy}","received_events_url":"https://api.github.com/users/gabrieljenik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrieljenik/sisyphus","description":"Gmail-like client-side drafts and bit more. Plugin developed to save html forms data to LocalStorage to restore them after browser crashes, tabs closings and other disasters.","fork":true,"url":"https://api.github.com/repos/gabrieljenik/sisyphus","forks_url":"https://api.github.com/repos/gabrieljenik/sisyphus/forks","keys_url":"https://api.github.com/repos/gabrieljenik/sisyphus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrieljenik/sisyphus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrieljenik/sisyphus/teams","hooks_url":"https://api.github.com/repos/gabrieljenik/sisyphus/hooks","issue_events_url":"https://api.github.com/repos/gabrieljenik/sisyphus/issues/events{/number}","events_url":"https://api.github.com/repos/gabrieljenik/sisyphus/events","assignees_url":"https://api.github.com/repos/gabrieljenik/sisyphus/assignees{/user}","branches_url":"https://api.github.com/repos/gabrieljenik/sisyphus/branches{/branch}","tags_url":"https://api.github.com/repos/gabrieljenik/sisyphus/tags","blobs_url":"https://api.github.com/repos/gabrieljenik/sisyphus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrieljenik/sisyphus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrieljenik/sisyphus/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrieljenik/sisyphus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrieljenik/sisyphus/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrieljenik/sisyphus/languages","stargazers_url":"https://api.github.com/repos/gabrieljenik/sisyphus/stargazers","contributors_url":"https://api.github.com/repos/gabrieljenik/sisyphus/contributors","subscribers_url":"https://api.github.com/repos/gabrieljenik/sisyphus/subscribers","subscription_url":"https://api.github.com/repos/gabrieljenik/sisyphus/subscription","commits_url":"https://api.github.com/repos/gabrieljenik/sisyphus/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrieljenik/sisyphus/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrieljenik/sisyphus/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrieljenik/sisyphus/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrieljenik/sisyphus/contents/{+path}","compare_url":"https://api.github.com/repos/gabrieljenik/sisyphus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrieljenik/sisyphus/merges","archive_url":"https://api.github.com/repos/gabrieljenik/sisyphus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrieljenik/sisyphus/downloads","issues_url":"https://api.github.com/repos/gabrieljenik/sisyphus/issues{/number}","pulls_url":"https://api.github.com/repos/gabrieljenik/sisyphus/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrieljenik/sisyphus/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrieljenik/sisyphus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrieljenik/sisyphus/labels{/name}","releases_url":"https://api.github.com/repos/gabrieljenik/sisyphus/releases{/id}","created_at":"2015-01-26T04:41:28Z","updated_at":"2015-01-26T04:41:28Z","pushed_at":"2015-02-24T16:02:55Z","git_url":"git://github.com/gabrieljenik/sisyphus.git","ssh_url":"git@github.com:gabrieljenik/sisyphus.git","clone_url":"https://github.com/gabrieljenik/sisyphus.git","svn_url":"https://github.com/gabrieljenik/sisyphus","homepage":"http://sisyphus-js.herokuapp.com","size":570,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"simsalabim:master","ref":"master","sha":"bb6fadcae5bbae3f83d5fb9f44d237d0c2ac9643","user":{"login":"simsalabim","id":53946,"avatar_url":"https://avatars.githubusercontent.com/u/53946?v=3","gravatar_id":"","url":"https://api.github.com/users/simsalabim","html_url":"https://github.com/simsalabim","followers_url":"https://api.github.com/users/simsalabim/followers","following_url":"https://api.github.com/users/simsalabim/following{/other_user}","gists_url":"https://api.github.com/users/simsalabim/gists{/gist_id}","starred_url":"https://api.github.com/users/simsalabim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simsalabim/subscriptions","organizations_url":"https://api.github.com/users/simsalabim/orgs","repos_url":"https://api.github.com/users/simsalabim/repos","events_url":"https://api.github.com/users/simsalabim/events{/privacy}","received_events_url":"https://api.github.com/users/simsalabim/received_events","type":"User","site_admin":false},"repo":{"id":2643120,"name":"sisyphus","full_name":"simsalabim/sisyphus","owner":{"login":"simsalabim","id":53946,"avatar_url":"https://avatars.githubusercontent.com/u/53946?v=3","gravatar_id":"","url":"https://api.github.com/users/simsalabim","html_url":"https://github.com/simsalabim","followers_url":"https://api.github.com/users/simsalabim/followers","following_url":"https://api.github.com/users/simsalabim/following{/other_user}","gists_url":"https://api.github.com/users/simsalabim/gists{/gist_id}","starred_url":"https://api.github.com/users/simsalabim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simsalabim/subscriptions","organizations_url":"https://api.github.com/users/simsalabim/orgs","repos_url":"https://api.github.com/users/simsalabim/repos","events_url":"https://api.github.com/users/simsalabim/events{/privacy}","received_events_url":"https://api.github.com/users/simsalabim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/simsalabim/sisyphus","description":"Gmail-like client-side drafts and bit more. Plugin developed to save html forms data to LocalStorage to restore them after browser crashes, tabs closings and other disasters.","fork":false,"url":"https://api.github.com/repos/simsalabim/sisyphus","forks_url":"https://api.github.com/repos/simsalabim/sisyphus/forks","keys_url":"https://api.github.com/repos/simsalabim/sisyphus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simsalabim/sisyphus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simsalabim/sisyphus/teams","hooks_url":"https://api.github.com/repos/simsalabim/sisyphus/hooks","issue_events_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/events{/number}","events_url":"https://api.github.com/repos/simsalabim/sisyphus/events","assignees_url":"https://api.github.com/repos/simsalabim/sisyphus/assignees{/user}","branches_url":"https://api.github.com/repos/simsalabim/sisyphus/branches{/branch}","tags_url":"https://api.github.com/repos/simsalabim/sisyphus/tags","blobs_url":"https://api.github.com/repos/simsalabim/sisyphus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simsalabim/sisyphus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simsalabim/sisyphus/git/refs{/sha}","trees_url":"https://api.github.com/repos/simsalabim/sisyphus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simsalabim/sisyphus/statuses/{sha}","languages_url":"https://api.github.com/repos/simsalabim/sisyphus/languages","stargazers_url":"https://api.github.com/repos/simsalabim/sisyphus/stargazers","contributors_url":"https://api.github.com/repos/simsalabim/sisyphus/contributors","subscribers_url":"https://api.github.com/repos/simsalabim/sisyphus/subscribers","subscription_url":"https://api.github.com/repos/simsalabim/sisyphus/subscription","commits_url":"https://api.github.com/repos/simsalabim/sisyphus/commits{/sha}","git_commits_url":"https://api.github.com/repos/simsalabim/sisyphus/git/commits{/sha}","comments_url":"https://api.github.com/repos/simsalabim/sisyphus/comments{/number}","issue_comment_url":"https://api.github.com/repos/simsalabim/sisyphus/issues/comments{/number}","contents_url":"https://api.github.com/repos/simsalabim/sisyphus/contents/{+path}","compare_url":"https://api.github.com/repos/simsalabim/sisyphus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simsalabim/sisyphus/merges","archive_url":"https://api.github.com/repos/simsalabim/sisyphus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simsalabim/sisyphus/downloads","issues_url":"https://api.github.com/repos/simsalabim/sisyphus/issues{/number}","pulls_url":"https://api.github.com/repos/simsalabim/sisyphus/pulls{/number}","milestones_url":"https://api.github.com/repos/simsalabim/sisyphus/milestones{/number}","notifications_url":"https://api.github.com/repos/simsalabim/sisyphus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simsalabim/sisyphus/labels{/name}","releases_url":"https://api.github.com/repos/simsalabim/sisyphus/releases{/id}","created_at":"2011-10-25T12:12:58Z","updated_at":"2015-02-22T23:04:40Z","pushed_at":"2014-10-19T03:40:49Z","git_url":"git://github.com/simsalabim/sisyphus.git","ssh_url":"git@github.com:simsalabim/sisyphus.git","clone_url":"https://github.com/simsalabim/sisyphus.git","svn_url":"https://github.com/simsalabim/sisyphus","homepage":"http://sisyphus-js.herokuapp.com","size":1415,"stargazers_count":1631,"watchers_count":1631,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":173,"mirror_url":null,"open_issues_count":11,"forks":173,"open_issues":11,"watchers":1631,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114"},"html":{"href":"https://github.com/simsalabim/sisyphus/pull/114"},"issue":{"href":"https://api.github.com/repos/simsalabim/sisyphus/issues/114"},"comments":{"href":"https://api.github.com/repos/simsalabim/sisyphus/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/simsalabim/sisyphus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/simsalabim/sisyphus/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/simsalabim/sisyphus/statuses/ea1bb403f51c357cf81864ffac5ac95d417a87e4"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":0,"changed_files":1}}