{"action":"created","comment":{"url":"https://api.github.com/repos/adicu/calendar/pulls/comments/27749154","id":27749154,"diff_hunk":"@@ -1,10 +1,39 @@\n var RSearch = React.createClass({\n+    onclick: function() {\n+        console.log(\"Clicked!\");\n+        tag = $(\"input\")[0]\n+        url = \"/search/\" + tag.value\n+        var setGlobalState = this.props.setGlobalState;\n+        $.getJSON(url, function(data) {\n+            setGlobalState({eventList: data.data});\n+        });\n+    },\n     render: function() {\n         return (\n-            <form className=\"search\">\n+            <div className=\"search\">\n                 <input type=\"text\"/>\n-                <input type=\"submit\" value=\"Search\"/>\n-            </form>\n+                <button onClick={this.onclick}> Search </button>\n+            </div>\n+        );\n+    }\n+})\n+\n+var RReset = React.createClass({\n+    onclick: function() {\n+        var setGlobalState = this.props.setGlobalState;\n+        $.getJSON('/events/', function(data) {\n+            setGlobalState({eventList: data.data});\n+        }.bind(this));\n+\n+        $.getJSON('/users', function(data) {\n+            setGlobalState({userList: data.data});\n+        }.bind(this));\n+    },\n+    render: function() {\n+        return (\n+            <div className=\"reset\">\n+                <button onClick={this.onclick}> Reset Events</button>","path":"cal/static/jsx/query.jsx","position":38,"original_position":38,"commit_id":"b6527bebef3900676043e10e3657ee154753faf1","original_commit_id":"2f223ac53588f5f3efba7036c9082bef04e2e4ad","user":{"login":"alanhdu","id":1914111,"avatar_url":"https://avatars.githubusercontent.com/u/1914111?v=3","gravatar_id":"","url":"https://api.github.com/users/alanhdu","html_url":"https://github.com/alanhdu","followers_url":"https://api.github.com/users/alanhdu/followers","following_url":"https://api.github.com/users/alanhdu/following{/other_user}","gists_url":"https://api.github.com/users/alanhdu/gists{/gist_id}","starred_url":"https://api.github.com/users/alanhdu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanhdu/subscriptions","organizations_url":"https://api.github.com/users/alanhdu/orgs","repos_url":"https://api.github.com/users/alanhdu/repos","events_url":"https://api.github.com/users/alanhdu/events{/privacy}","received_events_url":"https://api.github.com/users/alanhdu/received_events","type":"User","site_admin":false},"body":"Another minor quibble...could we add a space between `Events` and `</button>`?","created_at":"2015-04-03T19:12:28Z","updated_at":"2015-04-03T19:12:28Z","html_url":"https://github.com/adicu/calendar/pull/62#discussion_r27749154","pull_request_url":"https://api.github.com/repos/adicu/calendar/pulls/62","_links":{"self":{"href":"https://api.github.com/repos/adicu/calendar/pulls/comments/27749154"},"html":{"href":"https://github.com/adicu/calendar/pull/62#discussion_r27749154"},"pull_request":{"href":"https://api.github.com/repos/adicu/calendar/pulls/62"}}},"pull_request":{"url":"https://api.github.com/repos/adicu/calendar/pulls/62","id":32145000,"html_url":"https://github.com/adicu/calendar/pull/62","diff_url":"https://github.com/adicu/calendar/pull/62.diff","patch_url":"https://github.com/adicu/calendar/pull/62.patch","issue_url":"https://api.github.com/repos/adicu/calendar/issues/62","number":62,"state":"open","locked":false,"title":"Added search bar and reset button, changed jsx files and __init__.py","user":{"login":"pkathail","id":9710978,"avatar_url":"https://avatars.githubusercontent.com/u/9710978?v=3","gravatar_id":"","url":"https://api.github.com/users/pkathail","html_url":"https://github.com/pkathail","followers_url":"https://api.github.com/users/pkathail/followers","following_url":"https://api.github.com/users/pkathail/following{/other_user}","gists_url":"https://api.github.com/users/pkathail/gists{/gist_id}","starred_url":"https://api.github.com/users/pkathail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkathail/subscriptions","organizations_url":"https://api.github.com/users/pkathail/orgs","repos_url":"https://api.github.com/users/pkathail/repos","events_url":"https://api.github.com/users/pkathail/events{/privacy}","received_events_url":"https://api.github.com/users/pkathail/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-27T21:06:13Z","updated_at":"2015-04-03T19:12:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8f74ea58d809790391cf18df8286e4b6d5053f46","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/adicu/calendar/pulls/62/commits","review_comments_url":"https://api.github.com/repos/adicu/calendar/pulls/62/comments","review_comment_url":"https://api.github.com/repos/adicu/calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adicu/calendar/issues/62/comments","statuses_url":"https://api.github.com/repos/adicu/calendar/statuses/b6527bebef3900676043e10e3657ee154753faf1","head":{"label":"pkathail:master","ref":"master","sha":"b6527bebef3900676043e10e3657ee154753faf1","user":{"login":"pkathail","id":9710978,"avatar_url":"https://avatars.githubusercontent.com/u/9710978?v=3","gravatar_id":"","url":"https://api.github.com/users/pkathail","html_url":"https://github.com/pkathail","followers_url":"https://api.github.com/users/pkathail/followers","following_url":"https://api.github.com/users/pkathail/following{/other_user}","gists_url":"https://api.github.com/users/pkathail/gists{/gist_id}","starred_url":"https://api.github.com/users/pkathail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkathail/subscriptions","organizations_url":"https://api.github.com/users/pkathail/orgs","repos_url":"https://api.github.com/users/pkathail/repos","events_url":"https://api.github.com/users/pkathail/events{/privacy}","received_events_url":"https://api.github.com/users/pkathail/received_events","type":"User","site_admin":false},"repo":{"id":30771290,"name":"calendar","full_name":"pkathail/calendar","owner":{"login":"pkathail","id":9710978,"avatar_url":"https://avatars.githubusercontent.com/u/9710978?v=3","gravatar_id":"","url":"https://api.github.com/users/pkathail","html_url":"https://github.com/pkathail","followers_url":"https://api.github.com/users/pkathail/followers","following_url":"https://api.github.com/users/pkathail/following{/other_user}","gists_url":"https://api.github.com/users/pkathail/gists{/gist_id}","starred_url":"https://api.github.com/users/pkathail/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkathail/subscriptions","organizations_url":"https://api.github.com/users/pkathail/orgs","repos_url":"https://api.github.com/users/pkathail/repos","events_url":"https://api.github.com/users/pkathail/events{/privacy}","received_events_url":"https://api.github.com/users/pkathail/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkathail/calendar","description":"","fork":true,"url":"https://api.github.com/repos/pkathail/calendar","forks_url":"https://api.github.com/repos/pkathail/calendar/forks","keys_url":"https://api.github.com/repos/pkathail/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkathail/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkathail/calendar/teams","hooks_url":"https://api.github.com/repos/pkathail/calendar/hooks","issue_events_url":"https://api.github.com/repos/pkathail/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/pkathail/calendar/events","assignees_url":"https://api.github.com/repos/pkathail/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/pkathail/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/pkathail/calendar/tags","blobs_url":"https://api.github.com/repos/pkathail/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkathail/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkathail/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkathail/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkathail/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/pkathail/calendar/languages","stargazers_url":"https://api.github.com/repos/pkathail/calendar/stargazers","contributors_url":"https://api.github.com/repos/pkathail/calendar/contributors","subscribers_url":"https://api.github.com/repos/pkathail/calendar/subscribers","subscription_url":"https://api.github.com/repos/pkathail/calendar/subscription","commits_url":"https://api.github.com/repos/pkathail/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkathail/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkathail/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkathail/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkathail/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/pkathail/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkathail/calendar/merges","archive_url":"https://api.github.com/repos/pkathail/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkathail/calendar/downloads","issues_url":"https://api.github.com/repos/pkathail/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/pkathail/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/pkathail/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/pkathail/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkathail/calendar/labels{/name}","releases_url":"https://api.github.com/repos/pkathail/calendar/releases{/id}","created_at":"2015-02-13T19:07:13Z","updated_at":"2015-04-03T19:11:56Z","pushed_at":"2015-04-03T19:11:56Z","git_url":"git://github.com/pkathail/calendar.git","ssh_url":"git@github.com:pkathail/calendar.git","clone_url":"https://github.com/pkathail/calendar.git","svn_url":"https://github.com/pkathail/calendar","homepage":null,"size":643,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"adicu:master","ref":"master","sha":"cb8d931e3346836f0e9189ece061abdd59c8389f","user":{"login":"adicu","id":987267,"avatar_url":"https://avatars.githubusercontent.com/u/987267?v=3","gravatar_id":"","url":"https://api.github.com/users/adicu","html_url":"https://github.com/adicu","followers_url":"https://api.github.com/users/adicu/followers","following_url":"https://api.github.com/users/adicu/following{/other_user}","gists_url":"https://api.github.com/users/adicu/gists{/gist_id}","starred_url":"https://api.github.com/users/adicu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adicu/subscriptions","organizations_url":"https://api.github.com/users/adicu/orgs","repos_url":"https://api.github.com/users/adicu/repos","events_url":"https://api.github.com/users/adicu/events{/privacy}","received_events_url":"https://api.github.com/users/adicu/received_events","type":"Organization","site_admin":false},"repo":{"id":30770949,"name":"calendar","full_name":"adicu/calendar","owner":{"login":"adicu","id":987267,"avatar_url":"https://avatars.githubusercontent.com/u/987267?v=3","gravatar_id":"","url":"https://api.github.com/users/adicu","html_url":"https://github.com/adicu","followers_url":"https://api.github.com/users/adicu/followers","following_url":"https://api.github.com/users/adicu/following{/other_user}","gists_url":"https://api.github.com/users/adicu/gists{/gist_id}","starred_url":"https://api.github.com/users/adicu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adicu/subscriptions","organizations_url":"https://api.github.com/users/adicu/orgs","repos_url":"https://api.github.com/users/adicu/repos","events_url":"https://api.github.com/users/adicu/events{/privacy}","received_events_url":"https://api.github.com/users/adicu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/adicu/calendar","description":"","fork":false,"url":"https://api.github.com/repos/adicu/calendar","forks_url":"https://api.github.com/repos/adicu/calendar/forks","keys_url":"https://api.github.com/repos/adicu/calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adicu/calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adicu/calendar/teams","hooks_url":"https://api.github.com/repos/adicu/calendar/hooks","issue_events_url":"https://api.github.com/repos/adicu/calendar/issues/events{/number}","events_url":"https://api.github.com/repos/adicu/calendar/events","assignees_url":"https://api.github.com/repos/adicu/calendar/assignees{/user}","branches_url":"https://api.github.com/repos/adicu/calendar/branches{/branch}","tags_url":"https://api.github.com/repos/adicu/calendar/tags","blobs_url":"https://api.github.com/repos/adicu/calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adicu/calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adicu/calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/adicu/calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adicu/calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/adicu/calendar/languages","stargazers_url":"https://api.github.com/repos/adicu/calendar/stargazers","contributors_url":"https://api.github.com/repos/adicu/calendar/contributors","subscribers_url":"https://api.github.com/repos/adicu/calendar/subscribers","subscription_url":"https://api.github.com/repos/adicu/calendar/subscription","commits_url":"https://api.github.com/repos/adicu/calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/adicu/calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/adicu/calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/adicu/calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/adicu/calendar/contents/{+path}","compare_url":"https://api.github.com/repos/adicu/calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adicu/calendar/merges","archive_url":"https://api.github.com/repos/adicu/calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adicu/calendar/downloads","issues_url":"https://api.github.com/repos/adicu/calendar/issues{/number}","pulls_url":"https://api.github.com/repos/adicu/calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/adicu/calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/adicu/calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adicu/calendar/labels{/name}","releases_url":"https://api.github.com/repos/adicu/calendar/releases{/id}","created_at":"2015-02-13T18:59:17Z","updated_at":"2015-04-03T19:08:27Z","pushed_at":"2015-04-03T19:11:57Z","git_url":"git://github.com/adicu/calendar.git","ssh_url":"git@github.com:adicu/calendar.git","clone_url":"https://github.com/adicu/calendar.git","svn_url":"https://github.com/adicu/calendar","homepage":null,"size":1071,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":11,"forks":6,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adicu/calendar/pulls/62"},"html":{"href":"https://github.com/adicu/calendar/pull/62"},"issue":{"href":"https://api.github.com/repos/adicu/calendar/issues/62"},"comments":{"href":"https://api.github.com/repos/adicu/calendar/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/adicu/calendar/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/adicu/calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adicu/calendar/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/adicu/calendar/statuses/b6527bebef3900676043e10e3657ee154753faf1"}}}}