{"action":"closed","number":5629,"pull_request":{"url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629","id":40073596,"html_url":"https://github.com/HabitRPG/habitrpg/pull/5629","diff_url":"https://github.com/HabitRPG/habitrpg/pull/5629.diff","patch_url":"https://github.com/HabitRPG/habitrpg/pull/5629.patch","issue_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5629","number":5629,"state":"closed","locked":false,"title":"Prevent Herobox click when share this is displayed","user":{"login":"aedotj","id":7189784,"avatar_url":"https://avatars.githubusercontent.com/u/7189784?v=3","gravatar_id":"","url":"https://api.github.com/users/aedotj","html_url":"https://github.com/aedotj","followers_url":"https://api.github.com/users/aedotj/followers","following_url":"https://api.github.com/users/aedotj/following{/other_user}","gists_url":"https://api.github.com/users/aedotj/gists{/gist_id}","starred_url":"https://api.github.com/users/aedotj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedotj/subscriptions","organizations_url":"https://api.github.com/users/aedotj/orgs","repos_url":"https://api.github.com/users/aedotj/repos","events_url":"https://api.github.com/users/aedotj/events{/privacy}","received_events_url":"https://api.github.com/users/aedotj/received_events","type":"User","site_admin":false},"body":"**Issue:** #5628  \r\n**Fix:** [Plunk](http://plnkr.co/edit/js6mbyl5lzwDtWoVXw1E?p=preview).\r\n\r\n**Update:** Changed variable. However, I don't know (forgot some things about ng..) if, within the UserCtrl scope, we can access ```spell, castEnd() and clickMember()```. If we can't, then my code won't work. Using the double ternary was the secure solution for me.","created_at":"2015-07-15T21:46:37Z","updated_at":"2015-08-03T12:55:49Z","closed_at":"2015-08-03T12:55:49Z","merged_at":null,"merge_commit_sha":"d0041f8c537bed43ca6065363d8fe12027354e39","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629/commits","review_comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629/comments","review_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5629/comments","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/d44ab766dc82f62b024bfb92f876d51100dc2784","head":{"label":"aedotj:patch-2","ref":"patch-2","sha":"d44ab766dc82f62b024bfb92f876d51100dc2784","user":{"login":"aedotj","id":7189784,"avatar_url":"https://avatars.githubusercontent.com/u/7189784?v=3","gravatar_id":"","url":"https://api.github.com/users/aedotj","html_url":"https://github.com/aedotj","followers_url":"https://api.github.com/users/aedotj/followers","following_url":"https://api.github.com/users/aedotj/following{/other_user}","gists_url":"https://api.github.com/users/aedotj/gists{/gist_id}","starred_url":"https://api.github.com/users/aedotj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedotj/subscriptions","organizations_url":"https://api.github.com/users/aedotj/orgs","repos_url":"https://api.github.com/users/aedotj/repos","events_url":"https://api.github.com/users/aedotj/events{/privacy}","received_events_url":"https://api.github.com/users/aedotj/received_events","type":"User","site_admin":false},"repo":{"id":39099330,"name":"habitrpg","full_name":"aedotj/habitrpg","owner":{"login":"aedotj","id":7189784,"avatar_url":"https://avatars.githubusercontent.com/u/7189784?v=3","gravatar_id":"","url":"https://api.github.com/users/aedotj","html_url":"https://github.com/aedotj","followers_url":"https://api.github.com/users/aedotj/followers","following_url":"https://api.github.com/users/aedotj/following{/other_user}","gists_url":"https://api.github.com/users/aedotj/gists{/gist_id}","starred_url":"https://api.github.com/users/aedotj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aedotj/subscriptions","organizations_url":"https://api.github.com/users/aedotj/orgs","repos_url":"https://api.github.com/users/aedotj/repos","events_url":"https://api.github.com/users/aedotj/events{/privacy}","received_events_url":"https://api.github.com/users/aedotj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aedotj/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":true,"url":"https://api.github.com/repos/aedotj/habitrpg","forks_url":"https://api.github.com/repos/aedotj/habitrpg/forks","keys_url":"https://api.github.com/repos/aedotj/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aedotj/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aedotj/habitrpg/teams","hooks_url":"https://api.github.com/repos/aedotj/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/aedotj/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/aedotj/habitrpg/events","assignees_url":"https://api.github.com/repos/aedotj/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/aedotj/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/aedotj/habitrpg/tags","blobs_url":"https://api.github.com/repos/aedotj/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aedotj/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aedotj/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/aedotj/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aedotj/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/aedotj/habitrpg/languages","stargazers_url":"https://api.github.com/repos/aedotj/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/aedotj/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/aedotj/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/aedotj/habitrpg/subscription","commits_url":"https://api.github.com/repos/aedotj/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/aedotj/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/aedotj/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/aedotj/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/aedotj/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/aedotj/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aedotj/habitrpg/merges","archive_url":"https://api.github.com/repos/aedotj/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aedotj/habitrpg/downloads","issues_url":"https://api.github.com/repos/aedotj/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/aedotj/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/aedotj/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/aedotj/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aedotj/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/aedotj/habitrpg/releases{/id}","created_at":"2015-07-14T20:42:16Z","updated_at":"2015-07-14T20:42:23Z","pushed_at":"2015-07-15T23:48:04Z","git_url":"git://github.com/aedotj/habitrpg.git","ssh_url":"git@github.com:aedotj/habitrpg.git","clone_url":"https://github.com/aedotj/habitrpg.git","svn_url":"https://github.com/aedotj/habitrpg","homepage":"habitrpg.com","size":223242,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"HabitRPG:develop","ref":"develop","sha":"c15f2b1f8065ec4ec0136dde53c348790fef370e","user":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"repo":{"id":4578898,"name":"habitrpg","full_name":"HabitRPG/habitrpg","owner":{"login":"HabitRPG","id":3834775,"avatar_url":"https://avatars.githubusercontent.com/u/3834775?v=3","gravatar_id":"","url":"https://api.github.com/users/HabitRPG","html_url":"https://github.com/HabitRPG","followers_url":"https://api.github.com/users/HabitRPG/followers","following_url":"https://api.github.com/users/HabitRPG/following{/other_user}","gists_url":"https://api.github.com/users/HabitRPG/gists{/gist_id}","starred_url":"https://api.github.com/users/HabitRPG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HabitRPG/subscriptions","organizations_url":"https://api.github.com/users/HabitRPG/orgs","repos_url":"https://api.github.com/users/HabitRPG/repos","events_url":"https://api.github.com/users/HabitRPG/events{/privacy}","received_events_url":"https://api.github.com/users/HabitRPG/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HabitRPG/habitrpg","description":"A habit tracker app which treats your goals like a Role Playing Game.","fork":false,"url":"https://api.github.com/repos/HabitRPG/habitrpg","forks_url":"https://api.github.com/repos/HabitRPG/habitrpg/forks","keys_url":"https://api.github.com/repos/HabitRPG/habitrpg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HabitRPG/habitrpg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HabitRPG/habitrpg/teams","hooks_url":"https://api.github.com/repos/HabitRPG/habitrpg/hooks","issue_events_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/events{/number}","events_url":"https://api.github.com/repos/HabitRPG/habitrpg/events","assignees_url":"https://api.github.com/repos/HabitRPG/habitrpg/assignees{/user}","branches_url":"https://api.github.com/repos/HabitRPG/habitrpg/branches{/branch}","tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/tags","blobs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/refs{/sha}","trees_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/{sha}","languages_url":"https://api.github.com/repos/HabitRPG/habitrpg/languages","stargazers_url":"https://api.github.com/repos/HabitRPG/habitrpg/stargazers","contributors_url":"https://api.github.com/repos/HabitRPG/habitrpg/contributors","subscribers_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscribers","subscription_url":"https://api.github.com/repos/HabitRPG/habitrpg/subscription","commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/commits{/sha}","git_commits_url":"https://api.github.com/repos/HabitRPG/habitrpg/git/commits{/sha}","comments_url":"https://api.github.com/repos/HabitRPG/habitrpg/comments{/number}","issue_comment_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues/comments{/number}","contents_url":"https://api.github.com/repos/HabitRPG/habitrpg/contents/{+path}","compare_url":"https://api.github.com/repos/HabitRPG/habitrpg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HabitRPG/habitrpg/merges","archive_url":"https://api.github.com/repos/HabitRPG/habitrpg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HabitRPG/habitrpg/downloads","issues_url":"https://api.github.com/repos/HabitRPG/habitrpg/issues{/number}","pulls_url":"https://api.github.com/repos/HabitRPG/habitrpg/pulls{/number}","milestones_url":"https://api.github.com/repos/HabitRPG/habitrpg/milestones{/number}","notifications_url":"https://api.github.com/repos/HabitRPG/habitrpg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HabitRPG/habitrpg/labels{/name}","releases_url":"https://api.github.com/repos/HabitRPG/habitrpg/releases{/id}","created_at":"2012-06-06T22:49:48Z","updated_at":"2015-08-02T15:53:45Z","pushed_at":"2015-08-03T12:54:21Z","git_url":"git://github.com/HabitRPG/habitrpg.git","ssh_url":"git@github.com:HabitRPG/habitrpg.git","clone_url":"https://github.com/HabitRPG/habitrpg.git","svn_url":"https://github.com/HabitRPG/habitrpg","homepage":"habitrpg.com","size":257670,"stargazers_count":2963,"watchers_count":2963,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1166,"mirror_url":null,"open_issues_count":424,"forks":1166,"open_issues":424,"watchers":2963,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629"},"html":{"href":"https://github.com/HabitRPG/habitrpg/pull/5629"},"issue":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5629"},"comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/issues/5629/comments"},"review_comments":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629/comments"},"review_comment":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/pulls/5629/commits"},"statuses":{"href":"https://api.github.com/repos/HabitRPG/habitrpg/statuses/d44ab766dc82f62b024bfb92f876d51100dc2784"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":4,"commits":5,"additions":7,"deletions":2,"changed_files":3}}