{"action":"created","comment":{"url":"https://api.github.com/repos/jobready/osom-tables/pulls/comments/63975125","id":63975125,"diff_hunk":"@@ -117,6 +132,32 @@\n     }\n   }\n \n+  function save_checkboxes(container) {\n+    var checked_ids;\n+    checked_ids = (container.data('checked') || '').split(',');\n+    container.find('td.mark input[type=\"checkbox\"]').each(function() {\n+      var item_id;\n+      item_id = $(this).data('item-id').toString();\n+      if ($.inArray(item_id, checked_ids) === -1) {\n+        if (this.checked) {\n+          return checked_ids.push(item_id);\n+        }\n+      } else if (!this.checked) {\n+        return checked_ids.splice($.inArray(item_id, checked_ids), 1);\n+      }\n+    });\n+    return container.data('checked', checked_ids.join(',').replace(/^,/, ''));\n+  };\n+\n+  function restore_checkboxes(container) {\n+    var checked_ids;\n+    checked_ids = (container.data('checked') || '').split(',');\n+    return container.find('td.mark input[type=\"checkbox\"]').each(function() {\n+      this.checked = $.inArray($(this).data('item-id').toString(), checked_ids) !== -1;\n+      return true;\n+    });\n+  };\n+","path":"app/assets/javascripts/osom-tables.js","position":67,"original_position":58,"commit_id":"a11ebc40572b3e138f87ad7485dece32f30b30c2","original_commit_id":"62d654eb9a9513c1106cb9024e2d1c1ce13e633f","user":{"login":"bradb","id":24045,"avatar_url":"https://avatars.githubusercontent.com/u/24045?v=3","gravatar_id":"","url":"https://api.github.com/users/bradb","html_url":"https://github.com/bradb","followers_url":"https://api.github.com/users/bradb/followers","following_url":"https://api.github.com/users/bradb/following{/other_user}","gists_url":"https://api.github.com/users/bradb/gists{/gist_id}","starred_url":"https://api.github.com/users/bradb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradb/subscriptions","organizations_url":"https://api.github.com/users/bradb/orgs","repos_url":"https://api.github.com/users/bradb/repos","events_url":"https://api.github.com/users/bradb/events{/privacy}","received_events_url":"https://api.github.com/users/bradb/received_events","type":"User","site_admin":false},"body":":+1:","created_at":"2016-05-20T00:24:17Z","updated_at":"2016-05-20T00:24:17Z","html_url":"https://github.com/jobready/osom-tables/pull/5#discussion_r63975125","pull_request_url":"https://api.github.com/repos/jobready/osom-tables/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/comments/63975125"},"html":{"href":"https://github.com/jobready/osom-tables/pull/5#discussion_r63975125"},"pull_request":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/jobready/osom-tables/pulls/5","id":63986567,"html_url":"https://github.com/jobready/osom-tables/pull/5","diff_url":"https://github.com/jobready/osom-tables/pull/5.diff","patch_url":"https://github.com/jobready/osom-tables/pull/5.patch","issue_url":"https://api.github.com/repos/jobready/osom-tables/issues/5","number":5,"state":"open","locked":false,"title":"Add checkboxes to osom_table","user":{"login":"rauxalach","id":1320349,"avatar_url":"https://avatars.githubusercontent.com/u/1320349?v=3","gravatar_id":"","url":"https://api.github.com/users/rauxalach","html_url":"https://github.com/rauxalach","followers_url":"https://api.github.com/users/rauxalach/followers","following_url":"https://api.github.com/users/rauxalach/following{/other_user}","gists_url":"https://api.github.com/users/rauxalach/gists{/gist_id}","starred_url":"https://api.github.com/users/rauxalach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rauxalach/subscriptions","organizations_url":"https://api.github.com/users/rauxalach/orgs","repos_url":"https://api.github.com/users/rauxalach/repos","events_url":"https://api.github.com/users/rauxalach/events{/privacy}","received_events_url":"https://api.github.com/users/rauxalach/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-24T03:46:56Z","updated_at":"2016-05-20T00:24:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1372882fca84e312c6c576ddeadd19a4bc2b67a6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jobready/osom-tables/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jobready/osom-tables/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jobready/osom-tables/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jobready/osom-tables/issues/5/comments","statuses_url":"https://api.github.com/repos/jobready/osom-tables/statuses/a11ebc40572b3e138f87ad7485dece32f30b30c2","head":{"label":"jobready:add_checkboxes","ref":"add_checkboxes","sha":"a11ebc40572b3e138f87ad7485dece32f30b30c2","user":{"login":"jobready","id":286351,"avatar_url":"https://avatars.githubusercontent.com/u/286351?v=3","gravatar_id":"","url":"https://api.github.com/users/jobready","html_url":"https://github.com/jobready","followers_url":"https://api.github.com/users/jobready/followers","following_url":"https://api.github.com/users/jobready/following{/other_user}","gists_url":"https://api.github.com/users/jobready/gists{/gist_id}","starred_url":"https://api.github.com/users/jobready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobready/subscriptions","organizations_url":"https://api.github.com/users/jobready/orgs","repos_url":"https://api.github.com/users/jobready/repos","events_url":"https://api.github.com/users/jobready/events{/privacy}","received_events_url":"https://api.github.com/users/jobready/received_events","type":"Organization","site_admin":false},"repo":{"id":13429487,"name":"osom-tables","full_name":"jobready/osom-tables","owner":{"login":"jobready","id":286351,"avatar_url":"https://avatars.githubusercontent.com/u/286351?v=3","gravatar_id":"","url":"https://api.github.com/users/jobready","html_url":"https://github.com/jobready","followers_url":"https://api.github.com/users/jobready/followers","following_url":"https://api.github.com/users/jobready/following{/other_user}","gists_url":"https://api.github.com/users/jobready/gists{/gist_id}","starred_url":"https://api.github.com/users/jobready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobready/subscriptions","organizations_url":"https://api.github.com/users/jobready/orgs","repos_url":"https://api.github.com/users/jobready/repos","events_url":"https://api.github.com/users/jobready/events{/privacy}","received_events_url":"https://api.github.com/users/jobready/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jobready/osom-tables","description":"Rails friendly, ajax tables engine","fork":true,"url":"https://api.github.com/repos/jobready/osom-tables","forks_url":"https://api.github.com/repos/jobready/osom-tables/forks","keys_url":"https://api.github.com/repos/jobready/osom-tables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jobready/osom-tables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jobready/osom-tables/teams","hooks_url":"https://api.github.com/repos/jobready/osom-tables/hooks","issue_events_url":"https://api.github.com/repos/jobready/osom-tables/issues/events{/number}","events_url":"https://api.github.com/repos/jobready/osom-tables/events","assignees_url":"https://api.github.com/repos/jobready/osom-tables/assignees{/user}","branches_url":"https://api.github.com/repos/jobready/osom-tables/branches{/branch}","tags_url":"https://api.github.com/repos/jobready/osom-tables/tags","blobs_url":"https://api.github.com/repos/jobready/osom-tables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jobready/osom-tables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jobready/osom-tables/git/refs{/sha}","trees_url":"https://api.github.com/repos/jobready/osom-tables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jobready/osom-tables/statuses/{sha}","languages_url":"https://api.github.com/repos/jobready/osom-tables/languages","stargazers_url":"https://api.github.com/repos/jobready/osom-tables/stargazers","contributors_url":"https://api.github.com/repos/jobready/osom-tables/contributors","subscribers_url":"https://api.github.com/repos/jobready/osom-tables/subscribers","subscription_url":"https://api.github.com/repos/jobready/osom-tables/subscription","commits_url":"https://api.github.com/repos/jobready/osom-tables/commits{/sha}","git_commits_url":"https://api.github.com/repos/jobready/osom-tables/git/commits{/sha}","comments_url":"https://api.github.com/repos/jobready/osom-tables/comments{/number}","issue_comment_url":"https://api.github.com/repos/jobready/osom-tables/issues/comments{/number}","contents_url":"https://api.github.com/repos/jobready/osom-tables/contents/{+path}","compare_url":"https://api.github.com/repos/jobready/osom-tables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jobready/osom-tables/merges","archive_url":"https://api.github.com/repos/jobready/osom-tables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jobready/osom-tables/downloads","issues_url":"https://api.github.com/repos/jobready/osom-tables/issues{/number}","pulls_url":"https://api.github.com/repos/jobready/osom-tables/pulls{/number}","milestones_url":"https://api.github.com/repos/jobready/osom-tables/milestones{/number}","notifications_url":"https://api.github.com/repos/jobready/osom-tables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jobready/osom-tables/labels{/name}","releases_url":"https://api.github.com/repos/jobready/osom-tables/releases{/id}","deployments_url":"https://api.github.com/repos/jobready/osom-tables/deployments","created_at":"2013-10-09T00:52:36Z","updated_at":"2016-05-13T04:24:35Z","pushed_at":"2016-05-19T07:19:55Z","git_url":"git://github.com/jobready/osom-tables.git","ssh_url":"git@github.com:jobready/osom-tables.git","clone_url":"https://github.com/jobready/osom-tables.git","svn_url":"https://github.com/jobready/osom-tables","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jobready:master","ref":"master","sha":"71d2e57fde206b536bd979c18697d528ebc3cf7d","user":{"login":"jobready","id":286351,"avatar_url":"https://avatars.githubusercontent.com/u/286351?v=3","gravatar_id":"","url":"https://api.github.com/users/jobready","html_url":"https://github.com/jobready","followers_url":"https://api.github.com/users/jobready/followers","following_url":"https://api.github.com/users/jobready/following{/other_user}","gists_url":"https://api.github.com/users/jobready/gists{/gist_id}","starred_url":"https://api.github.com/users/jobready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobready/subscriptions","organizations_url":"https://api.github.com/users/jobready/orgs","repos_url":"https://api.github.com/users/jobready/repos","events_url":"https://api.github.com/users/jobready/events{/privacy}","received_events_url":"https://api.github.com/users/jobready/received_events","type":"Organization","site_admin":false},"repo":{"id":13429487,"name":"osom-tables","full_name":"jobready/osom-tables","owner":{"login":"jobready","id":286351,"avatar_url":"https://avatars.githubusercontent.com/u/286351?v=3","gravatar_id":"","url":"https://api.github.com/users/jobready","html_url":"https://github.com/jobready","followers_url":"https://api.github.com/users/jobready/followers","following_url":"https://api.github.com/users/jobready/following{/other_user}","gists_url":"https://api.github.com/users/jobready/gists{/gist_id}","starred_url":"https://api.github.com/users/jobready/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jobready/subscriptions","organizations_url":"https://api.github.com/users/jobready/orgs","repos_url":"https://api.github.com/users/jobready/repos","events_url":"https://api.github.com/users/jobready/events{/privacy}","received_events_url":"https://api.github.com/users/jobready/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jobready/osom-tables","description":"Rails friendly, ajax tables engine","fork":true,"url":"https://api.github.com/repos/jobready/osom-tables","forks_url":"https://api.github.com/repos/jobready/osom-tables/forks","keys_url":"https://api.github.com/repos/jobready/osom-tables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jobready/osom-tables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jobready/osom-tables/teams","hooks_url":"https://api.github.com/repos/jobready/osom-tables/hooks","issue_events_url":"https://api.github.com/repos/jobready/osom-tables/issues/events{/number}","events_url":"https://api.github.com/repos/jobready/osom-tables/events","assignees_url":"https://api.github.com/repos/jobready/osom-tables/assignees{/user}","branches_url":"https://api.github.com/repos/jobready/osom-tables/branches{/branch}","tags_url":"https://api.github.com/repos/jobready/osom-tables/tags","blobs_url":"https://api.github.com/repos/jobready/osom-tables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jobready/osom-tables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jobready/osom-tables/git/refs{/sha}","trees_url":"https://api.github.com/repos/jobready/osom-tables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jobready/osom-tables/statuses/{sha}","languages_url":"https://api.github.com/repos/jobready/osom-tables/languages","stargazers_url":"https://api.github.com/repos/jobready/osom-tables/stargazers","contributors_url":"https://api.github.com/repos/jobready/osom-tables/contributors","subscribers_url":"https://api.github.com/repos/jobready/osom-tables/subscribers","subscription_url":"https://api.github.com/repos/jobready/osom-tables/subscription","commits_url":"https://api.github.com/repos/jobready/osom-tables/commits{/sha}","git_commits_url":"https://api.github.com/repos/jobready/osom-tables/git/commits{/sha}","comments_url":"https://api.github.com/repos/jobready/osom-tables/comments{/number}","issue_comment_url":"https://api.github.com/repos/jobready/osom-tables/issues/comments{/number}","contents_url":"https://api.github.com/repos/jobready/osom-tables/contents/{+path}","compare_url":"https://api.github.com/repos/jobready/osom-tables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jobready/osom-tables/merges","archive_url":"https://api.github.com/repos/jobready/osom-tables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jobready/osom-tables/downloads","issues_url":"https://api.github.com/repos/jobready/osom-tables/issues{/number}","pulls_url":"https://api.github.com/repos/jobready/osom-tables/pulls{/number}","milestones_url":"https://api.github.com/repos/jobready/osom-tables/milestones{/number}","notifications_url":"https://api.github.com/repos/jobready/osom-tables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jobready/osom-tables/labels{/name}","releases_url":"https://api.github.com/repos/jobready/osom-tables/releases{/id}","deployments_url":"https://api.github.com/repos/jobready/osom-tables/deployments","created_at":"2013-10-09T00:52:36Z","updated_at":"2016-05-13T04:24:35Z","pushed_at":"2016-05-19T07:19:55Z","git_url":"git://github.com/jobready/osom-tables.git","ssh_url":"git@github.com:jobready/osom-tables.git","clone_url":"https://github.com/jobready/osom-tables.git","svn_url":"https://github.com/jobready/osom-tables","homepage":null,"size":53,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/5"},"html":{"href":"https://github.com/jobready/osom-tables/pull/5"},"issue":{"href":"https://api.github.com/repos/jobready/osom-tables/issues/5"},"comments":{"href":"https://api.github.com/repos/jobready/osom-tables/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jobready/osom-tables/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jobready/osom-tables/statuses/a11ebc40572b3e138f87ad7485dece32f30b30c2"}}}}
{"actor":{"display_login":"bradb"}}