{"action":"created","comment":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/28175821","id":28175821,"diff_hunk":"@@ -95,9 +95,39 @@ $('#movie_title').keyup(function() {\n       $('#movie_title').val(selectedTitle);\n     });\n   });\n-});\n+})\n \n $('#movie-submit').on('focusin',function() {\n   $('#titles-list-container').hide();\n   $('#titles-list').replaceWith('<ul id=\"titles-list\"></ul>');\n });\n+\n+// SEARCH ON OUR DB\n+$('#search_title').keyup(function() {\n+  $('#titles-list').replaceWith('<ul id=\"titles-list\"></ul>');\n+  var movieTitle = $(this).val();\n+  $('#titles-list-container').show();\n+  var titlesRequest = $.ajax({\n+    method: 'GET',\n+    url: '/searches',\n+    data: { q: movieTitle }\n+  });\n+  titlesRequest.done(function(movieTitles) {\n+    var data = JSON.parse(movieTitles);\n+    for (i = 0; i < data.length; i++) {","path":"app/assets/javascripts/application.js","position":42,"original_position":42,"commit_id":"6c922753d2a367fca81bc956bd946d48b70cfeea","original_commit_id":"6c922753d2a367fca81bc956bd946d48b70cfeea","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":"'i' is not defined.","created_at":"2015-04-10T20:03:27Z","updated_at":"2015-04-10T20:03:27Z","html_url":"https://github.com/DuncanRose/MovieHub/pull/16#discussion_r28175821","pull_request_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments/28175821"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/16#discussion_r28175821"},"pull_request":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16","id":32902875,"html_url":"https://github.com/DuncanRose/MovieHub/pull/16","diff_url":"https://github.com/DuncanRose/MovieHub/pull/16.diff","patch_url":"https://github.com/DuncanRose/MovieHub/pull/16.patch","issue_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/16","number":16,"state":"open","locked":false,"title":"basic styling for new movie, added margins, text decoration for heading,...","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"body":"... size of viewing screen","created_at":"2015-04-08T21:15:34Z","updated_at":"2015-04-10T20:03:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efc84c1c8203609d5bb8088539edc718be9b0127","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16/commits","review_comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16/comments","review_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/16/comments","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/6c922753d2a367fca81bc956bd946d48b70cfeea","head":{"label":"DuncanRose:clean-up-formatting","ref":"clean-up-formatting","sha":"6c922753d2a367fca81bc956bd946d48b70cfeea","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-04-10T16:48:09Z","pushed_at":"2015-04-10T20:03:15Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"http://www.MovieHub.click","size":2237,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"DuncanRose:master","ref":"master","sha":"d9c6c995b48ea2b704ec50c88e2b85f80a655689","user":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"repo":{"id":33132921,"name":"MovieHub","full_name":"DuncanRose/MovieHub","owner":{"login":"DuncanRose","id":9580892,"avatar_url":"https://avatars.githubusercontent.com/u/9580892?v=3","gravatar_id":"","url":"https://api.github.com/users/DuncanRose","html_url":"https://github.com/DuncanRose","followers_url":"https://api.github.com/users/DuncanRose/followers","following_url":"https://api.github.com/users/DuncanRose/following{/other_user}","gists_url":"https://api.github.com/users/DuncanRose/gists{/gist_id}","starred_url":"https://api.github.com/users/DuncanRose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DuncanRose/subscriptions","organizations_url":"https://api.github.com/users/DuncanRose/orgs","repos_url":"https://api.github.com/users/DuncanRose/repos","events_url":"https://api.github.com/users/DuncanRose/events{/privacy}","received_events_url":"https://api.github.com/users/DuncanRose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DuncanRose/MovieHub","description":"Group Project at Launch Academy","fork":false,"url":"https://api.github.com/repos/DuncanRose/MovieHub","forks_url":"https://api.github.com/repos/DuncanRose/MovieHub/forks","keys_url":"https://api.github.com/repos/DuncanRose/MovieHub/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DuncanRose/MovieHub/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DuncanRose/MovieHub/teams","hooks_url":"https://api.github.com/repos/DuncanRose/MovieHub/hooks","issue_events_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/events{/number}","events_url":"https://api.github.com/repos/DuncanRose/MovieHub/events","assignees_url":"https://api.github.com/repos/DuncanRose/MovieHub/assignees{/user}","branches_url":"https://api.github.com/repos/DuncanRose/MovieHub/branches{/branch}","tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/tags","blobs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/refs{/sha}","trees_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/{sha}","languages_url":"https://api.github.com/repos/DuncanRose/MovieHub/languages","stargazers_url":"https://api.github.com/repos/DuncanRose/MovieHub/stargazers","contributors_url":"https://api.github.com/repos/DuncanRose/MovieHub/contributors","subscribers_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscribers","subscription_url":"https://api.github.com/repos/DuncanRose/MovieHub/subscription","commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/commits{/sha}","git_commits_url":"https://api.github.com/repos/DuncanRose/MovieHub/git/commits{/sha}","comments_url":"https://api.github.com/repos/DuncanRose/MovieHub/comments{/number}","issue_comment_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues/comments{/number}","contents_url":"https://api.github.com/repos/DuncanRose/MovieHub/contents/{+path}","compare_url":"https://api.github.com/repos/DuncanRose/MovieHub/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DuncanRose/MovieHub/merges","archive_url":"https://api.github.com/repos/DuncanRose/MovieHub/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DuncanRose/MovieHub/downloads","issues_url":"https://api.github.com/repos/DuncanRose/MovieHub/issues{/number}","pulls_url":"https://api.github.com/repos/DuncanRose/MovieHub/pulls{/number}","milestones_url":"https://api.github.com/repos/DuncanRose/MovieHub/milestones{/number}","notifications_url":"https://api.github.com/repos/DuncanRose/MovieHub/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DuncanRose/MovieHub/labels{/name}","releases_url":"https://api.github.com/repos/DuncanRose/MovieHub/releases{/id}","created_at":"2015-03-30T15:56:33Z","updated_at":"2015-04-10T16:48:09Z","pushed_at":"2015-04-10T20:03:15Z","git_url":"git://github.com/DuncanRose/MovieHub.git","ssh_url":"git@github.com:DuncanRose/MovieHub.git","clone_url":"https://github.com/DuncanRose/MovieHub.git","svn_url":"https://github.com/DuncanRose/MovieHub","homepage":"http://www.MovieHub.click","size":2237,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16"},"html":{"href":"https://github.com/DuncanRose/MovieHub/pull/16"},"issue":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/16"},"comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/DuncanRose/MovieHub/statuses/6c922753d2a367fca81bc956bd946d48b70cfeea"}}}}