{"action":"created","comment":{"url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/comments/26779776","id":26779776,"diff_hunk":"@@ -23,9 +23,26 @@\n     <div class=\"collapse navbar-collapse\" collapse=\"collapsed\">\n       <!-- left -->\n       <div class=\"navbar-left\">\n-        <form class=\"navbar-form\" role=\"search\">\n+        <form\n+          name=\"searchForm\"\n+          class=\"navbar-form\"\n+          role=\"search\"\n+          ng-submit=\"searchForm.$valid && phSearch(search.body, 10)\"\n+          novalidate\n+          >\n           <div class=\"input-group\">\n-            <input type=\"text\" class=\"form-control\" placeholder=\"Search PaperHub\" name=\"srch-term\" id=\"srch-term\">\n+            <input\n+              type=\"text\"\n+              class=\"form-control\"\n+              placeholder=\"Search PaperHub\"\n+              name=\"srch-term\"\n+              id=\"srch-term\"\n+              ng-model=\"search.body\"\n+              typeahead=\"result.title for result in phSearch($viewValue, 5)\"\n+              typeahead-wait-ms=\"250\"\n+              typeahead-on-select=\"goToArticle($item, $model, $label)\"\n+              required\n+              >\n             <div class=\"input-group-btn\">","path":"src/templates/shared/navbar.html","position":26,"original_position":26,"commit_id":"1b8771939eadbe319d30aa830ba7a16fe43353b2","original_commit_id":"d7502fbd43761d94b5bf71a8da5c9f034d25fb50","user":{"login":"andrenarchy","id":1874116,"avatar_url":"https://avatars.githubusercontent.com/u/1874116?v=3","gravatar_id":"","url":"https://api.github.com/users/andrenarchy","html_url":"https://github.com/andrenarchy","followers_url":"https://api.github.com/users/andrenarchy/followers","following_url":"https://api.github.com/users/andrenarchy/following{/other_user}","gists_url":"https://api.github.com/users/andrenarchy/gists{/gist_id}","starred_url":"https://api.github.com/users/andrenarchy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrenarchy/subscriptions","organizations_url":"https://api.github.com/users/andrenarchy/orgs","repos_url":"https://api.github.com/users/andrenarchy/repos","events_url":"https://api.github.com/users/andrenarchy/events{/privacy}","received_events_url":"https://api.github.com/users/andrenarchy/received_events","type":"User","site_admin":false},"body":"maybe we should remove the button and place the icon in the input field (like [here](http://getbootstrap.com/css/#forms-control-validation))","created_at":"2015-03-19T17:50:05Z","updated_at":"2015-03-19T17:50:05Z","html_url":"https://github.com/paperhub/paperhub-frontend/pull/97#discussion_r26779776","pull_request_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97","_links":{"self":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/comments/26779776"},"html":{"href":"https://github.com/paperhub/paperhub-frontend/pull/97#discussion_r26779776"},"pull_request":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97","id":31543752,"html_url":"https://github.com/paperhub/paperhub-frontend/pull/97","diff_url":"https://github.com/paperhub/paperhub-frontend/pull/97.diff","patch_url":"https://github.com/paperhub/paperhub-frontend/pull/97.patch","issue_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/97","number":97,"state":"open","locked":false,"title":"Search","user":{"login":"nschloe","id":181628,"avatar_url":"https://avatars.githubusercontent.com/u/181628?v=3","gravatar_id":"","url":"https://api.github.com/users/nschloe","html_url":"https://github.com/nschloe","followers_url":"https://api.github.com/users/nschloe/followers","following_url":"https://api.github.com/users/nschloe/following{/other_user}","gists_url":"https://api.github.com/users/nschloe/gists{/gist_id}","starred_url":"https://api.github.com/users/nschloe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nschloe/subscriptions","organizations_url":"https://api.github.com/users/nschloe/orgs","repos_url":"https://api.github.com/users/nschloe/repos","events_url":"https://api.github.com/users/nschloe/events{/privacy}","received_events_url":"https://api.github.com/users/nschloe/received_events","type":"User","site_admin":false},"body":"Implements article search with typeahead in the navbar and user search with mentio in a couple of textarea fields.","created_at":"2015-03-19T17:02:34Z","updated_at":"2015-03-19T17:50:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50446e0b36f03b856b68ba3b5f84ce330b6d5d41","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97/commits","review_comments_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97/comments","review_comment_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/97/comments","statuses_url":"https://api.github.com/repos/paperhub/paperhub-frontend/statuses/1b8771939eadbe319d30aa830ba7a16fe43353b2","head":{"label":"paperhub:search","ref":"search","sha":"1b8771939eadbe319d30aa830ba7a16fe43353b2","user":{"login":"paperhub","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhub","html_url":"https://github.com/paperhub","followers_url":"https://api.github.com/users/paperhub/followers","following_url":"https://api.github.com/users/paperhub/following{/other_user}","gists_url":"https://api.github.com/users/paperhub/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhub/subscriptions","organizations_url":"https://api.github.com/users/paperhub/orgs","repos_url":"https://api.github.com/users/paperhub/repos","events_url":"https://api.github.com/users/paperhub/events{/privacy}","received_events_url":"https://api.github.com/users/paperhub/received_events","type":"Organization","site_admin":false},"repo":{"id":25691817,"name":"paperhub-frontend","full_name":"paperhub/paperhub-frontend","owner":{"login":"paperhub","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhub","html_url":"https://github.com/paperhub","followers_url":"https://api.github.com/users/paperhub/followers","following_url":"https://api.github.com/users/paperhub/following{/other_user}","gists_url":"https://api.github.com/users/paperhub/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhub/subscriptions","organizations_url":"https://api.github.com/users/paperhub/orgs","repos_url":"https://api.github.com/users/paperhub/repos","events_url":"https://api.github.com/users/paperhub/events{/privacy}","received_events_url":"https://api.github.com/users/paperhub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paperhub/paperhub-frontend","description":"","fork":false,"url":"https://api.github.com/repos/paperhub/paperhub-frontend","forks_url":"https://api.github.com/repos/paperhub/paperhub-frontend/forks","keys_url":"https://api.github.com/repos/paperhub/paperhub-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paperhub/paperhub-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paperhub/paperhub-frontend/teams","hooks_url":"https://api.github.com/repos/paperhub/paperhub-frontend/hooks","issue_events_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/paperhub/paperhub-frontend/events","assignees_url":"https://api.github.com/repos/paperhub/paperhub-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/paperhub/paperhub-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/paperhub/paperhub-frontend/tags","blobs_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paperhub/paperhub-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/paperhub/paperhub-frontend/languages","stargazers_url":"https://api.github.com/repos/paperhub/paperhub-frontend/stargazers","contributors_url":"https://api.github.com/repos/paperhub/paperhub-frontend/contributors","subscribers_url":"https://api.github.com/repos/paperhub/paperhub-frontend/subscribers","subscription_url":"https://api.github.com/repos/paperhub/paperhub-frontend/subscription","commits_url":"https://api.github.com/repos/paperhub/paperhub-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/paperhub/paperhub-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/paperhub/paperhub-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/paperhub/paperhub-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paperhub/paperhub-frontend/merges","archive_url":"https://api.github.com/repos/paperhub/paperhub-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paperhub/paperhub-frontend/downloads","issues_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/paperhub/paperhub-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/paperhub/paperhub-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paperhub/paperhub-frontend/labels{/name}","releases_url":"https://api.github.com/repos/paperhub/paperhub-frontend/releases{/id}","created_at":"2014-10-24T14:16:38Z","updated_at":"2015-03-18T21:21:28Z","pushed_at":"2015-03-19T17:49:53Z","git_url":"git://github.com/paperhub/paperhub-frontend.git","ssh_url":"git@github.com:paperhub/paperhub-frontend.git","clone_url":"https://github.com/paperhub/paperhub-frontend.git","svn_url":"https://github.com/paperhub/paperhub-frontend","homepage":null,"size":3547,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":3,"default_branch":"master"}},"base":{"label":"paperhub:master","ref":"master","sha":"771e93f1422795930478731a26e8fe9233630b56","user":{"login":"paperhub","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhub","html_url":"https://github.com/paperhub","followers_url":"https://api.github.com/users/paperhub/followers","following_url":"https://api.github.com/users/paperhub/following{/other_user}","gists_url":"https://api.github.com/users/paperhub/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhub/subscriptions","organizations_url":"https://api.github.com/users/paperhub/orgs","repos_url":"https://api.github.com/users/paperhub/repos","events_url":"https://api.github.com/users/paperhub/events{/privacy}","received_events_url":"https://api.github.com/users/paperhub/received_events","type":"Organization","site_admin":false},"repo":{"id":25691817,"name":"paperhub-frontend","full_name":"paperhub/paperhub-frontend","owner":{"login":"paperhub","id":8027504,"avatar_url":"https://avatars.githubusercontent.com/u/8027504?v=3","gravatar_id":"","url":"https://api.github.com/users/paperhub","html_url":"https://github.com/paperhub","followers_url":"https://api.github.com/users/paperhub/followers","following_url":"https://api.github.com/users/paperhub/following{/other_user}","gists_url":"https://api.github.com/users/paperhub/gists{/gist_id}","starred_url":"https://api.github.com/users/paperhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paperhub/subscriptions","organizations_url":"https://api.github.com/users/paperhub/orgs","repos_url":"https://api.github.com/users/paperhub/repos","events_url":"https://api.github.com/users/paperhub/events{/privacy}","received_events_url":"https://api.github.com/users/paperhub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paperhub/paperhub-frontend","description":"","fork":false,"url":"https://api.github.com/repos/paperhub/paperhub-frontend","forks_url":"https://api.github.com/repos/paperhub/paperhub-frontend/forks","keys_url":"https://api.github.com/repos/paperhub/paperhub-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paperhub/paperhub-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paperhub/paperhub-frontend/teams","hooks_url":"https://api.github.com/repos/paperhub/paperhub-frontend/hooks","issue_events_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/paperhub/paperhub-frontend/events","assignees_url":"https://api.github.com/repos/paperhub/paperhub-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/paperhub/paperhub-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/paperhub/paperhub-frontend/tags","blobs_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paperhub/paperhub-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/paperhub/paperhub-frontend/languages","stargazers_url":"https://api.github.com/repos/paperhub/paperhub-frontend/stargazers","contributors_url":"https://api.github.com/repos/paperhub/paperhub-frontend/contributors","subscribers_url":"https://api.github.com/repos/paperhub/paperhub-frontend/subscribers","subscription_url":"https://api.github.com/repos/paperhub/paperhub-frontend/subscription","commits_url":"https://api.github.com/repos/paperhub/paperhub-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/paperhub/paperhub-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/paperhub/paperhub-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/paperhub/paperhub-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/paperhub/paperhub-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paperhub/paperhub-frontend/merges","archive_url":"https://api.github.com/repos/paperhub/paperhub-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paperhub/paperhub-frontend/downloads","issues_url":"https://api.github.com/repos/paperhub/paperhub-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/paperhub/paperhub-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/paperhub/paperhub-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paperhub/paperhub-frontend/labels{/name}","releases_url":"https://api.github.com/repos/paperhub/paperhub-frontend/releases{/id}","created_at":"2014-10-24T14:16:38Z","updated_at":"2015-03-18T21:21:28Z","pushed_at":"2015-03-19T17:49:53Z","git_url":"git://github.com/paperhub/paperhub-frontend.git","ssh_url":"git@github.com:paperhub/paperhub-frontend.git","clone_url":"https://github.com/paperhub/paperhub-frontend.git","svn_url":"https://github.com/paperhub/paperhub-frontend","homepage":null,"size":3547,"stargazers_count":3,"watchers_count":3,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":25,"forks":0,"open_issues":25,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97"},"html":{"href":"https://github.com/paperhub/paperhub-frontend/pull/97"},"issue":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/97"},"comments":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/paperhub/paperhub-frontend/statuses/1b8771939eadbe319d30aa830ba7a16fe43353b2"}}}}