{"action":"created","comment":{"url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/comments/27477824","id":27477824,"diff_hunk":"@@ -2,32 +2,36 @@\n \n $(document).ready(function () {\n   function countCheckedBoxes() {\n-    var selectedEntriesCount = $('.bill_checkbox:checked').length;\n+    var selectedEntriesCount = $('.bill-checkbox.unbilled:checked').length;\n     var lang = $('body').data('language');\n     $('#amount_marked_entries').text(I18n[lang].checked.pre + selectedEntriesCount + I18n[lang].checked.post);\n     $('#submit-billable-entries').attr(\"disabled\", selectedEntriesCount === 0);\n   }\n \n-  $('#submit-billable-entries').click(function (e) {\n-    e.preventDefault();\n-    $('#billable-entries-form').submit();\n-  });\n-\n-  $('#billable-entries-form').bind('ajax:complete', function() {\n-    window.location.reload();\n-  });\n-\n-  $('.bill_checkbox').change(function () {\n+  $('.bill-checkbox').change(function () {\n     countCheckedBoxes();\n   });\n \n-  $('.bill-project').click(function (element) {\n+\n+  $('.select-all').click(function (element) {\n     var checked = $(element.target).prop('checked');\n     $('input[data-project-id=\"' + $(element.target).attr('data-project-id') +\n+<<<<<<< HEAD\n       '\"][name^=\"' + $(element.target).attr('data-entry_type') + '_to_bill[]\"').\n+=======","path":"app/assets/javascripts/billables.js","position":32,"original_position":32,"commit_id":"af87be237bf59fe65ce5a746853670e1156bf841","original_commit_id":"af87be237bf59fe65ce5a746853670e1156bf841","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Expected an identifier and instead saw '==='.<br>Expected an operator and instead saw '==='.<br>Expected an operator and instead saw '='.<br>Expected an assignment or function call and instead saw an expression.<br>Missing semicolon.","created_at":"2015-03-31T13:26:01Z","updated_at":"2015-03-31T13:26:01Z","html_url":"https://github.com/DefactoSoftware/Hours/pull/294#discussion_r27477824","pull_request_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294","_links":{"self":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/comments/27477824"},"html":{"href":"https://github.com/DefactoSoftware/Hours/pull/294#discussion_r27477824"},"pull_request":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294"}}},"pull_request":{"url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294","id":31035612,"html_url":"https://github.com/DefactoSoftware/Hours/pull/294","diff_url":"https://github.com/DefactoSoftware/Hours/pull/294.diff","patch_url":"https://github.com/DefactoSoftware/Hours/pull/294.patch","issue_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/294","number":294,"state":"open","locked":false,"title":"[WIP] unbill button added","user":{"login":"mischaboldy","id":9572013,"avatar_url":"https://avatars.githubusercontent.com/u/9572013?v=3","gravatar_id":"","url":"https://api.github.com/users/mischaboldy","html_url":"https://github.com/mischaboldy","followers_url":"https://api.github.com/users/mischaboldy/followers","following_url":"https://api.github.com/users/mischaboldy/following{/other_user}","gists_url":"https://api.github.com/users/mischaboldy/gists{/gist_id}","starred_url":"https://api.github.com/users/mischaboldy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mischaboldy/subscriptions","organizations_url":"https://api.github.com/users/mischaboldy/orgs","repos_url":"https://api.github.com/users/mischaboldy/repos","events_url":"https://api.github.com/users/mischaboldy/events{/privacy}","received_events_url":"https://api.github.com/users/mischaboldy/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-12T13:34:18Z","updated_at":"2015-03-31T13:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"17b115e857a0643d5ca0ed4474403397e4c2ef12","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294/commits","review_comments_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294/comments","review_comment_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/294/comments","statuses_url":"https://api.github.com/repos/DefactoSoftware/Hours/statuses/af87be237bf59fe65ce5a746853670e1156bf841","head":{"label":"DefactoSoftware:undo-billables","ref":"undo-billables","sha":"af87be237bf59fe65ce5a746853670e1156bf841","user":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":17153103,"name":"Hours","full_name":"DefactoSoftware/Hours","owner":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefactoSoftware/Hours","description":"Time registration that doesn't suck","fork":false,"url":"https://api.github.com/repos/DefactoSoftware/Hours","forks_url":"https://api.github.com/repos/DefactoSoftware/Hours/forks","keys_url":"https://api.github.com/repos/DefactoSoftware/Hours/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefactoSoftware/Hours/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefactoSoftware/Hours/teams","hooks_url":"https://api.github.com/repos/DefactoSoftware/Hours/hooks","issue_events_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/events{/number}","events_url":"https://api.github.com/repos/DefactoSoftware/Hours/events","assignees_url":"https://api.github.com/repos/DefactoSoftware/Hours/assignees{/user}","branches_url":"https://api.github.com/repos/DefactoSoftware/Hours/branches{/branch}","tags_url":"https://api.github.com/repos/DefactoSoftware/Hours/tags","blobs_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefactoSoftware/Hours/statuses/{sha}","languages_url":"https://api.github.com/repos/DefactoSoftware/Hours/languages","stargazers_url":"https://api.github.com/repos/DefactoSoftware/Hours/stargazers","contributors_url":"https://api.github.com/repos/DefactoSoftware/Hours/contributors","subscribers_url":"https://api.github.com/repos/DefactoSoftware/Hours/subscribers","subscription_url":"https://api.github.com/repos/DefactoSoftware/Hours/subscription","commits_url":"https://api.github.com/repos/DefactoSoftware/Hours/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefactoSoftware/Hours/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefactoSoftware/Hours/contents/{+path}","compare_url":"https://api.github.com/repos/DefactoSoftware/Hours/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefactoSoftware/Hours/merges","archive_url":"https://api.github.com/repos/DefactoSoftware/Hours/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefactoSoftware/Hours/downloads","issues_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues{/number}","pulls_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls{/number}","milestones_url":"https://api.github.com/repos/DefactoSoftware/Hours/milestones{/number}","notifications_url":"https://api.github.com/repos/DefactoSoftware/Hours/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefactoSoftware/Hours/labels{/name}","releases_url":"https://api.github.com/repos/DefactoSoftware/Hours/releases{/id}","created_at":"2014-02-24T22:25:47Z","updated_at":"2015-03-31T12:19:14Z","pushed_at":"2015-03-31T13:25:54Z","git_url":"git://github.com/DefactoSoftware/Hours.git","ssh_url":"git@github.com:DefactoSoftware/Hours.git","clone_url":"https://github.com/DefactoSoftware/Hours.git","svn_url":"https://github.com/DefactoSoftware/Hours","homepage":"https://happyhours.io","size":12732,"stargazers_count":553,"watchers_count":553,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":29,"forks":65,"open_issues":29,"watchers":553,"default_branch":"development"}},"base":{"label":"DefactoSoftware:development","ref":"development","sha":"d62eb5a27a2ccce972121162ba05ec655ba5c913","user":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":17153103,"name":"Hours","full_name":"DefactoSoftware/Hours","owner":{"login":"DefactoSoftware","id":3899757,"avatar_url":"https://avatars.githubusercontent.com/u/3899757?v=3","gravatar_id":"","url":"https://api.github.com/users/DefactoSoftware","html_url":"https://github.com/DefactoSoftware","followers_url":"https://api.github.com/users/DefactoSoftware/followers","following_url":"https://api.github.com/users/DefactoSoftware/following{/other_user}","gists_url":"https://api.github.com/users/DefactoSoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/DefactoSoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DefactoSoftware/subscriptions","organizations_url":"https://api.github.com/users/DefactoSoftware/orgs","repos_url":"https://api.github.com/users/DefactoSoftware/repos","events_url":"https://api.github.com/users/DefactoSoftware/events{/privacy}","received_events_url":"https://api.github.com/users/DefactoSoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DefactoSoftware/Hours","description":"Time registration that doesn't suck","fork":false,"url":"https://api.github.com/repos/DefactoSoftware/Hours","forks_url":"https://api.github.com/repos/DefactoSoftware/Hours/forks","keys_url":"https://api.github.com/repos/DefactoSoftware/Hours/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DefactoSoftware/Hours/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DefactoSoftware/Hours/teams","hooks_url":"https://api.github.com/repos/DefactoSoftware/Hours/hooks","issue_events_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/events{/number}","events_url":"https://api.github.com/repos/DefactoSoftware/Hours/events","assignees_url":"https://api.github.com/repos/DefactoSoftware/Hours/assignees{/user}","branches_url":"https://api.github.com/repos/DefactoSoftware/Hours/branches{/branch}","tags_url":"https://api.github.com/repos/DefactoSoftware/Hours/tags","blobs_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/refs{/sha}","trees_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DefactoSoftware/Hours/statuses/{sha}","languages_url":"https://api.github.com/repos/DefactoSoftware/Hours/languages","stargazers_url":"https://api.github.com/repos/DefactoSoftware/Hours/stargazers","contributors_url":"https://api.github.com/repos/DefactoSoftware/Hours/contributors","subscribers_url":"https://api.github.com/repos/DefactoSoftware/Hours/subscribers","subscription_url":"https://api.github.com/repos/DefactoSoftware/Hours/subscription","commits_url":"https://api.github.com/repos/DefactoSoftware/Hours/commits{/sha}","git_commits_url":"https://api.github.com/repos/DefactoSoftware/Hours/git/commits{/sha}","comments_url":"https://api.github.com/repos/DefactoSoftware/Hours/comments{/number}","issue_comment_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues/comments{/number}","contents_url":"https://api.github.com/repos/DefactoSoftware/Hours/contents/{+path}","compare_url":"https://api.github.com/repos/DefactoSoftware/Hours/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DefactoSoftware/Hours/merges","archive_url":"https://api.github.com/repos/DefactoSoftware/Hours/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DefactoSoftware/Hours/downloads","issues_url":"https://api.github.com/repos/DefactoSoftware/Hours/issues{/number}","pulls_url":"https://api.github.com/repos/DefactoSoftware/Hours/pulls{/number}","milestones_url":"https://api.github.com/repos/DefactoSoftware/Hours/milestones{/number}","notifications_url":"https://api.github.com/repos/DefactoSoftware/Hours/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DefactoSoftware/Hours/labels{/name}","releases_url":"https://api.github.com/repos/DefactoSoftware/Hours/releases{/id}","created_at":"2014-02-24T22:25:47Z","updated_at":"2015-03-31T12:19:14Z","pushed_at":"2015-03-31T13:25:54Z","git_url":"git://github.com/DefactoSoftware/Hours.git","ssh_url":"git@github.com:DefactoSoftware/Hours.git","clone_url":"https://github.com/DefactoSoftware/Hours.git","svn_url":"https://github.com/DefactoSoftware/Hours","homepage":"https://happyhours.io","size":12732,"stargazers_count":553,"watchers_count":553,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":29,"forks":65,"open_issues":29,"watchers":553,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294"},"html":{"href":"https://github.com/DefactoSoftware/Hours/pull/294"},"issue":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/issues/294"},"comments":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/DefactoSoftware/Hours/statuses/af87be237bf59fe65ce5a746853670e1156bf841"}}}}