{"action":"created","comment":{"url":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments/45223010","id":45223010,"diff_hunk":"@@ -31,4 +31,57 @@ $(document).ready(function(){\n      document.querySelector('#days').value = days;\n      document.querySelector('#total').value = total;\n    });\n+\n+   var $rentals = $('.rental');\n+\n+   $('#all').on('click', function() {\n+     $rentals.each(function (index, rental) {\n+       $rental = $(rental);\n+       $rental.show();\n+     });\n+   });\n+\n+   $('#paid').on('click', function() {\n+     $rentals.each(function (index, rental) {\n+       $rental = $(rental);\n+       if ($rental.data('status') === 'paid') {\n+         $rental.show();\n+       } else {\n+         $rental.hide();\n+       }\n+     });\n+   });\n+\n+   $('#out').on('click', function() {\n+     $rentals.each(function (index, rental) {\n+       $rental = $(rental);\n+       if ($rental.data('status') === 'out') {\n+         $rental.show();\n+       } else {\n+         $rental.hide();\n+       }\n+     });\n+   });\n+\n+   $('#cancelled').on('click', function() {\n+     $rentals.each(function (index, rental) {\n+       $rental = $(rental);\n+       if ($rental.data('status') === 'cancelled') {","path":"app/assets/javascripts/application.js","position":39,"original_position":39,"commit_id":"bb2e9f2365f988c92b6f2bebfcfe2a5a3f01d3de","original_commit_id":"bb2e9f2365f988c92b6f2bebfcfe2a5a3f01d3de","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":"Mixed double and single quotes.<br>'$rental' is not defined.","created_at":"2015-11-18T16:34:29Z","updated_at":"2015-11-18T16:34:29Z","html_url":"https://github.com/robbielane/lens_lease/pull/66#discussion_r45223010","pull_request_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/66","_links":{"self":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments/45223010"},"html":{"href":"https://github.com/robbielane/lens_lease/pull/66#discussion_r45223010"},"pull_request":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/robbielane/lens_lease/pulls/66","id":51107746,"html_url":"https://github.com/robbielane/lens_lease/pull/66","diff_url":"https://github.com/robbielane/lens_lease/pull/66.diff","patch_url":"https://github.com/robbielane/lens_lease/pull/66.patch","issue_url":"https://api.github.com/repos/robbielane/lens_lease/issues/66","number":66,"state":"open","locked":false,"title":"Use jquery to filter","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-18T16:34:05Z","updated_at":"2015-11-18T16:34:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"078250e2af59942d5aeac0ed6bbb19b9a5591997","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/66/commits","review_comments_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/66/comments","review_comment_url":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/issues/66/comments","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/bb2e9f2365f988c92b6f2bebfcfe2a5a3f01d3de","head":{"label":"robbielane:use-jquery-to-filter","ref":"use-jquery-to-filter","sha":"bb2e9f2365f988c92b6f2bebfcfe2a5a3f01d3de","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"repo":{"id":45855766,"name":"lens_lease","full_name":"robbielane/lens_lease","owner":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbielane/lens_lease","description":"","fork":false,"url":"https://api.github.com/repos/robbielane/lens_lease","forks_url":"https://api.github.com/repos/robbielane/lens_lease/forks","keys_url":"https://api.github.com/repos/robbielane/lens_lease/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbielane/lens_lease/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbielane/lens_lease/teams","hooks_url":"https://api.github.com/repos/robbielane/lens_lease/hooks","issue_events_url":"https://api.github.com/repos/robbielane/lens_lease/issues/events{/number}","events_url":"https://api.github.com/repos/robbielane/lens_lease/events","assignees_url":"https://api.github.com/repos/robbielane/lens_lease/assignees{/user}","branches_url":"https://api.github.com/repos/robbielane/lens_lease/branches{/branch}","tags_url":"https://api.github.com/repos/robbielane/lens_lease/tags","blobs_url":"https://api.github.com/repos/robbielane/lens_lease/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbielane/lens_lease/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbielane/lens_lease/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbielane/lens_lease/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/{sha}","languages_url":"https://api.github.com/repos/robbielane/lens_lease/languages","stargazers_url":"https://api.github.com/repos/robbielane/lens_lease/stargazers","contributors_url":"https://api.github.com/repos/robbielane/lens_lease/contributors","subscribers_url":"https://api.github.com/repos/robbielane/lens_lease/subscribers","subscription_url":"https://api.github.com/repos/robbielane/lens_lease/subscription","commits_url":"https://api.github.com/repos/robbielane/lens_lease/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbielane/lens_lease/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbielane/lens_lease/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbielane/lens_lease/contents/{+path}","compare_url":"https://api.github.com/repos/robbielane/lens_lease/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbielane/lens_lease/merges","archive_url":"https://api.github.com/repos/robbielane/lens_lease/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbielane/lens_lease/downloads","issues_url":"https://api.github.com/repos/robbielane/lens_lease/issues{/number}","pulls_url":"https://api.github.com/repos/robbielane/lens_lease/pulls{/number}","milestones_url":"https://api.github.com/repos/robbielane/lens_lease/milestones{/number}","notifications_url":"https://api.github.com/repos/robbielane/lens_lease/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbielane/lens_lease/labels{/name}","releases_url":"https://api.github.com/repos/robbielane/lens_lease/releases{/id}","created_at":"2015-11-09T17:50:14Z","updated_at":"2015-11-09T17:51:45Z","pushed_at":"2015-11-18T16:34:06Z","git_url":"git://github.com/robbielane/lens_lease.git","ssh_url":"git@github.com:robbielane/lens_lease.git","clone_url":"https://github.com/robbielane/lens_lease.git","svn_url":"https://github.com/robbielane/lens_lease","homepage":null,"size":349,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"robbielane:master","ref":"master","sha":"679d4ba3f1b7a6d2fcf92e161e0737373208a47d","user":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"repo":{"id":45855766,"name":"lens_lease","full_name":"robbielane/lens_lease","owner":{"login":"robbielane","id":12688159,"avatar_url":"https://avatars.githubusercontent.com/u/12688159?v=3","gravatar_id":"","url":"https://api.github.com/users/robbielane","html_url":"https://github.com/robbielane","followers_url":"https://api.github.com/users/robbielane/followers","following_url":"https://api.github.com/users/robbielane/following{/other_user}","gists_url":"https://api.github.com/users/robbielane/gists{/gist_id}","starred_url":"https://api.github.com/users/robbielane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robbielane/subscriptions","organizations_url":"https://api.github.com/users/robbielane/orgs","repos_url":"https://api.github.com/users/robbielane/repos","events_url":"https://api.github.com/users/robbielane/events{/privacy}","received_events_url":"https://api.github.com/users/robbielane/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/robbielane/lens_lease","description":"","fork":false,"url":"https://api.github.com/repos/robbielane/lens_lease","forks_url":"https://api.github.com/repos/robbielane/lens_lease/forks","keys_url":"https://api.github.com/repos/robbielane/lens_lease/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robbielane/lens_lease/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robbielane/lens_lease/teams","hooks_url":"https://api.github.com/repos/robbielane/lens_lease/hooks","issue_events_url":"https://api.github.com/repos/robbielane/lens_lease/issues/events{/number}","events_url":"https://api.github.com/repos/robbielane/lens_lease/events","assignees_url":"https://api.github.com/repos/robbielane/lens_lease/assignees{/user}","branches_url":"https://api.github.com/repos/robbielane/lens_lease/branches{/branch}","tags_url":"https://api.github.com/repos/robbielane/lens_lease/tags","blobs_url":"https://api.github.com/repos/robbielane/lens_lease/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robbielane/lens_lease/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robbielane/lens_lease/git/refs{/sha}","trees_url":"https://api.github.com/repos/robbielane/lens_lease/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robbielane/lens_lease/statuses/{sha}","languages_url":"https://api.github.com/repos/robbielane/lens_lease/languages","stargazers_url":"https://api.github.com/repos/robbielane/lens_lease/stargazers","contributors_url":"https://api.github.com/repos/robbielane/lens_lease/contributors","subscribers_url":"https://api.github.com/repos/robbielane/lens_lease/subscribers","subscription_url":"https://api.github.com/repos/robbielane/lens_lease/subscription","commits_url":"https://api.github.com/repos/robbielane/lens_lease/commits{/sha}","git_commits_url":"https://api.github.com/repos/robbielane/lens_lease/git/commits{/sha}","comments_url":"https://api.github.com/repos/robbielane/lens_lease/comments{/number}","issue_comment_url":"https://api.github.com/repos/robbielane/lens_lease/issues/comments{/number}","contents_url":"https://api.github.com/repos/robbielane/lens_lease/contents/{+path}","compare_url":"https://api.github.com/repos/robbielane/lens_lease/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robbielane/lens_lease/merges","archive_url":"https://api.github.com/repos/robbielane/lens_lease/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robbielane/lens_lease/downloads","issues_url":"https://api.github.com/repos/robbielane/lens_lease/issues{/number}","pulls_url":"https://api.github.com/repos/robbielane/lens_lease/pulls{/number}","milestones_url":"https://api.github.com/repos/robbielane/lens_lease/milestones{/number}","notifications_url":"https://api.github.com/repos/robbielane/lens_lease/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robbielane/lens_lease/labels{/name}","releases_url":"https://api.github.com/repos/robbielane/lens_lease/releases{/id}","created_at":"2015-11-09T17:50:14Z","updated_at":"2015-11-09T17:51:45Z","pushed_at":"2015-11-18T16:34:06Z","git_url":"git://github.com/robbielane/lens_lease.git","ssh_url":"git@github.com:robbielane/lens_lease.git","clone_url":"https://github.com/robbielane/lens_lease.git","svn_url":"https://github.com/robbielane/lens_lease","homepage":null,"size":349,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/66"},"html":{"href":"https://github.com/robbielane/lens_lease/pull/66"},"issue":{"href":"https://api.github.com/repos/robbielane/lens_lease/issues/66"},"comments":{"href":"https://api.github.com/repos/robbielane/lens_lease/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robbielane/lens_lease/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/robbielane/lens_lease/statuses/bb2e9f2365f988c92b6f2bebfcfe2a5a3f01d3de"}}}}