{"action":"created","comment":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/26440448","id":26440448,"diff_hunk":"@@ -16,24 +16,66 @@\n     });\n   }\n \n-  /** Updates a cell. Called from Rails controller grade_entry_forms/update_grade to\n+  /** Updates total marks cell. Called from Rails controller grade_entry_forms/update_grade to\n     * check if a cell exists before updating it, as cell existence can't be efficiently\n     * checked from the Ruby controller\n     */\n   function update_cell(cell, value) {\n-    // If the cell exists, change it's value to the one supplied\n+    // If the total marks cell exists, change it's value to the one supplied\n     if (document.getElementById(cell)) {\n       document.getElementById(cell).value = value;\n-    }\n+      var e = new MouseEvent('click', {\n+       'view': window,\n+       'bubbles': true,\n+       'cancelable': false\n+      });\n+      var node = document.getElementById(cell);\n+      node.dispatchEvent(e);\n+      }\n   }\n \n+  var GradeBoxTotal = React.createClass({\n+    handleChange: function() {\n+      this.props.value = parseInt(event.target.value);\n+    },\n+    render: function() {\n+      return(\n+        <input id={this.props.grade_id} type=\"text\" size=\"4\" className=\"grade-input\" value={this.props.value} onClick={this.handleChange} disabled/>","path":"app/views/grade_entry_forms/_react_grades_table.js.jsx.erb","position":31,"original_position":31,"commit_id":"2ebea91fdd002c5c2c095233a496551556abe15b","original_commit_id":"2ebea91fdd002c5c2c095233a496551556abe15b","user":{"login":"david-yz-liu","id":3333115,"avatar_url":"https://avatars.githubusercontent.com/u/3333115?v=3","gravatar_id":"","url":"https://api.github.com/users/david-yz-liu","html_url":"https://github.com/david-yz-liu","followers_url":"https://api.github.com/users/david-yz-liu/followers","following_url":"https://api.github.com/users/david-yz-liu/following{/other_user}","gists_url":"https://api.github.com/users/david-yz-liu/gists{/gist_id}","starred_url":"https://api.github.com/users/david-yz-liu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-yz-liu/subscriptions","organizations_url":"https://api.github.com/users/david-yz-liu/orgs","repos_url":"https://api.github.com/users/david-yz-liu/repos","events_url":"https://api.github.com/users/david-yz-liu/events{/privacy}","received_events_url":"https://api.github.com/users/david-yz-liu/received_events","type":"User","site_admin":false},"body":"Multiple lines here","created_at":"2015-03-14T18:47:48Z","updated_at":"2015-03-14T18:47:48Z","html_url":"https://github.com/MarkUsProject/Markus/pull/2086#discussion_r26440448","pull_request_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086","_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/26440448"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/2086#discussion_r26440448"},"pull_request":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086"}}},"pull_request":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086","id":31135230,"html_url":"https://github.com/MarkUsProject/Markus/pull/2086","diff_url":"https://github.com/MarkUsProject/Markus/pull/2086.diff","patch_url":"https://github.com/MarkUsProject/Markus/pull/2086.patch","issue_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/2086","number":2086,"state":"open","locked":false,"title":"Issue-2031 Fixed Grade Column Sorting and Saving","user":{"login":"peterzhao333","id":5542511,"avatar_url":"https://avatars.githubusercontent.com/u/5542511?v=3","gravatar_id":"","url":"https://api.github.com/users/peterzhao333","html_url":"https://github.com/peterzhao333","followers_url":"https://api.github.com/users/peterzhao333/followers","following_url":"https://api.github.com/users/peterzhao333/following{/other_user}","gists_url":"https://api.github.com/users/peterzhao333/gists{/gist_id}","starred_url":"https://api.github.com/users/peterzhao333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterzhao333/subscriptions","organizations_url":"https://api.github.com/users/peterzhao333/orgs","repos_url":"https://api.github.com/users/peterzhao333/repos","events_url":"https://api.github.com/users/peterzhao333/events{/privacy}","received_events_url":"https://api.github.com/users/peterzhao333/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-13T15:25:28Z","updated_at":"2015-03-14T18:47:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"860aff7d665d9c574a05cdb3eb3b8ae46f80f49f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086/commits","review_comments_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086/comments","review_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/2086/comments","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/2ebea91fdd002c5c2c095233a496551556abe15b","head":{"label":"peterzhao333:spreadsheets","ref":"spreadsheets","sha":"2ebea91fdd002c5c2c095233a496551556abe15b","user":{"login":"peterzhao333","id":5542511,"avatar_url":"https://avatars.githubusercontent.com/u/5542511?v=3","gravatar_id":"","url":"https://api.github.com/users/peterzhao333","html_url":"https://github.com/peterzhao333","followers_url":"https://api.github.com/users/peterzhao333/followers","following_url":"https://api.github.com/users/peterzhao333/following{/other_user}","gists_url":"https://api.github.com/users/peterzhao333/gists{/gist_id}","starred_url":"https://api.github.com/users/peterzhao333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterzhao333/subscriptions","organizations_url":"https://api.github.com/users/peterzhao333/orgs","repos_url":"https://api.github.com/users/peterzhao333/repos","events_url":"https://api.github.com/users/peterzhao333/events{/privacy}","received_events_url":"https://api.github.com/users/peterzhao333/received_events","type":"User","site_admin":false},"repo":{"id":29273515,"name":"Markus","full_name":"peterzhao333/Markus","owner":{"login":"peterzhao333","id":5542511,"avatar_url":"https://avatars.githubusercontent.com/u/5542511?v=3","gravatar_id":"","url":"https://api.github.com/users/peterzhao333","html_url":"https://github.com/peterzhao333","followers_url":"https://api.github.com/users/peterzhao333/followers","following_url":"https://api.github.com/users/peterzhao333/following{/other_user}","gists_url":"https://api.github.com/users/peterzhao333/gists{/gist_id}","starred_url":"https://api.github.com/users/peterzhao333/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterzhao333/subscriptions","organizations_url":"https://api.github.com/users/peterzhao333/orgs","repos_url":"https://api.github.com/users/peterzhao333/repos","events_url":"https://api.github.com/users/peterzhao333/events{/privacy}","received_events_url":"https://api.github.com/users/peterzhao333/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/peterzhao333/Markus","description":"Git repository of MarkUs","fork":true,"url":"https://api.github.com/repos/peterzhao333/Markus","forks_url":"https://api.github.com/repos/peterzhao333/Markus/forks","keys_url":"https://api.github.com/repos/peterzhao333/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/peterzhao333/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/peterzhao333/Markus/teams","hooks_url":"https://api.github.com/repos/peterzhao333/Markus/hooks","issue_events_url":"https://api.github.com/repos/peterzhao333/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/peterzhao333/Markus/events","assignees_url":"https://api.github.com/repos/peterzhao333/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/peterzhao333/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/peterzhao333/Markus/tags","blobs_url":"https://api.github.com/repos/peterzhao333/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/peterzhao333/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/peterzhao333/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/peterzhao333/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/peterzhao333/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/peterzhao333/Markus/languages","stargazers_url":"https://api.github.com/repos/peterzhao333/Markus/stargazers","contributors_url":"https://api.github.com/repos/peterzhao333/Markus/contributors","subscribers_url":"https://api.github.com/repos/peterzhao333/Markus/subscribers","subscription_url":"https://api.github.com/repos/peterzhao333/Markus/subscription","commits_url":"https://api.github.com/repos/peterzhao333/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/peterzhao333/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/peterzhao333/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/peterzhao333/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/peterzhao333/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/peterzhao333/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/peterzhao333/Markus/merges","archive_url":"https://api.github.com/repos/peterzhao333/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/peterzhao333/Markus/downloads","issues_url":"https://api.github.com/repos/peterzhao333/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/peterzhao333/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/peterzhao333/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/peterzhao333/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/peterzhao333/Markus/labels{/name}","releases_url":"https://api.github.com/repos/peterzhao333/Markus/releases{/id}","created_at":"2015-01-15T00:47:30Z","updated_at":"2015-01-15T00:47:33Z","pushed_at":"2015-03-13T15:59:21Z","git_url":"git://github.com/peterzhao333/Markus.git","ssh_url":"git@github.com:peterzhao333/Markus.git","clone_url":"https://github.com/peterzhao333/Markus.git","svn_url":"https://github.com/peterzhao333/Markus","homepage":"http://www.markusproject.org","size":20600,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MarkUsProject:spreadsheets","ref":"spreadsheets","sha":"7a4aadc8a738e4fbf91d77b00b617f80adce2209","user":{"login":"MarkUsProject","id":415874,"avatar_url":"https://avatars.githubusercontent.com/u/415874?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"repo":{"id":940538,"name":"Markus","full_name":"MarkUsProject/Markus","owner":{"login":"MarkUsProject","id":415874,"avatar_url":"https://avatars.githubusercontent.com/u/415874?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MarkUsProject/Markus","description":"Git repository of MarkUs","fork":false,"url":"https://api.github.com/repos/MarkUsProject/Markus","forks_url":"https://api.github.com/repos/MarkUsProject/Markus/forks","keys_url":"https://api.github.com/repos/MarkUsProject/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkUsProject/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkUsProject/Markus/teams","hooks_url":"https://api.github.com/repos/MarkUsProject/Markus/hooks","issue_events_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/MarkUsProject/Markus/events","assignees_url":"https://api.github.com/repos/MarkUsProject/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/MarkUsProject/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/MarkUsProject/Markus/tags","blobs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkUsProject/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkUsProject/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkUsProject/Markus/languages","stargazers_url":"https://api.github.com/repos/MarkUsProject/Markus/stargazers","contributors_url":"https://api.github.com/repos/MarkUsProject/Markus/contributors","subscribers_url":"https://api.github.com/repos/MarkUsProject/Markus/subscribers","subscription_url":"https://api.github.com/repos/MarkUsProject/Markus/subscription","commits_url":"https://api.github.com/repos/MarkUsProject/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkUsProject/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkUsProject/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/MarkUsProject/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkUsProject/Markus/merges","archive_url":"https://api.github.com/repos/MarkUsProject/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkUsProject/Markus/downloads","issues_url":"https://api.github.com/repos/MarkUsProject/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkUsProject/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkUsProject/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkUsProject/Markus/labels{/name}","releases_url":"https://api.github.com/repos/MarkUsProject/Markus/releases{/id}","created_at":"2010-09-26T16:18:08Z","updated_at":"2015-03-14T14:18:44Z","pushed_at":"2015-03-14T14:18:43Z","git_url":"git://github.com/MarkUsProject/Markus.git","ssh_url":"git@github.com:MarkUsProject/Markus.git","clone_url":"https://github.com/MarkUsProject/Markus.git","svn_url":"https://github.com/MarkUsProject/Markus","homepage":"http://www.markusproject.org","size":46866,"stargazers_count":122,"watchers_count":122,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":149,"mirror_url":null,"open_issues_count":114,"forks":149,"open_issues":114,"watchers":122,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/2086"},"issue":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/2086"},"comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/2086/comments"},"review_comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086/comments"},"review_comment":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2086/commits"},"statuses":{"href":"https://api.github.com/repos/MarkUsProject/Markus/statuses/2ebea91fdd002c5c2c095233a496551556abe15b"}}}}