{"action":"created","comment":{"url":"https://api.github.com/repos/openstax/tutor-js/pulls/comments/29051089","id":29051089,"diff_hunk":"@@ -150,45 +113,67 @@ ReadingPlan = React.createClass\n     if plan?.due_at\n       dueAt = new Date(plan.due_at)\n \n-    footer= <PlanFooter id={id} courseId={courseId} />\n-\n-    <BS.Panel bsStyle=\"primary\" className=\"create-reading\" footer={footer} header={headerText}>\n-      <div className=\"-reading-title\">\n-        <label htmlFor=\"reading-title\">Title</label>\n-        <input\n-          ref=\"title\"\n-          id=\"reading-title\"\n-          type=\"text\"\n-          value={plan.title}\n-          placeholder=\"Enter Title\"\n-          onChange={@setTitle} />\n-      </div>\n-      <div className=\"-reading-open-date\">\n-        <label htmlFor=\"reading-open-date\">Open Date</label>\n-        <DateTimePicker\n-          id=\"reading-open-date\"\n-          format=\"MMM dd, yyyy\"\n-          time={false}\n-          calendar={true}\n-          readOnly={false}\n-          onChange={@setOpensAt}\n-          max={dueAt}\n-          value={opensAt}/>\n-      </div>\n-      <div className=\"-reading-due-date\">\n-        <label htmlFor=\"reading-due-date\">Due Date</label>\n-        <DateTimePicker\n-          id=\"reading-due-date\"\n-          format=\"MMM dd, yyyy\"\n-          time={false}\n-          calendar={true}\n-          readOnly={false}\n-          onChange={@setDueAt}\n-          min={opensAt}\n-          value={dueAt}/>\n-      </div>\n-      <SelectTopics courseId={courseId} planId={id} selected={topics}/>\n-    </BS.Panel>\n+    footer = <PlanFooter id={id} courseId={courseId} />\n+\n+    if (@state?.showSectionTopics)\n+      formClasses.push('hide')\n+      selectReadings = <ChooseReadings\n+                        hide={@hideSectionTopics}\n+                        courseId={courseId} \n+                        planId={id} \n+                        selected={topics}/>\n+\n+    <div>","path":"src/components/task-plan/reading.cjsx","position":230,"original_position":230,"commit_id":"3173a86f79c55f2fa91149d11f6ffbe7c1133741","original_commit_id":"3173a86f79c55f2fa91149d11f6ffbe7c1133741","user":{"login":"jivewise","id":6434717,"avatar_url":"https://avatars.githubusercontent.com/u/6434717?v=3","gravatar_id":"","url":"https://api.github.com/users/jivewise","html_url":"https://github.com/jivewise","followers_url":"https://api.github.com/users/jivewise/followers","following_url":"https://api.github.com/users/jivewise/following{/other_user}","gists_url":"https://api.github.com/users/jivewise/gists{/gist_id}","starred_url":"https://api.github.com/users/jivewise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jivewise/subscriptions","organizations_url":"https://api.github.com/users/jivewise/orgs","repos_url":"https://api.github.com/users/jivewise/repos","events_url":"https://api.github.com/users/jivewise/events{/privacy}","received_events_url":"https://api.github.com/users/jivewise/received_events","type":"User","site_admin":false},"body":"I don't think it really needs one, as the panel below has a class already.  The div is just there to contain both the dialog and the panel.","created_at":"2015-04-24T14:09:40Z","updated_at":"2015-04-24T14:09:40Z","html_url":"https://github.com/openstax/tutor-js/pull/134#discussion_r29051089","pull_request_url":"https://api.github.com/repos/openstax/tutor-js/pulls/134","_links":{"self":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/comments/29051089"},"html":{"href":"https://github.com/openstax/tutor-js/pull/134#discussion_r29051089"},"pull_request":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/134"}}},"pull_request":{"url":"https://api.github.com/repos/openstax/tutor-js/pulls/134","id":34046963,"html_url":"https://github.com/openstax/tutor-js/pull/134","diff_url":"https://github.com/openstax/tutor-js/pull/134.diff","patch_url":"https://github.com/openstax/tutor-js/pull/134.patch","issue_url":"https://api.github.com/repos/openstax/tutor-js/issues/134","number":134,"state":"open","locked":false,"title":"Select Reading Dialog and various refactorings","user":{"login":"jivewise","id":6434717,"avatar_url":"https://avatars.githubusercontent.com/u/6434717?v=3","gravatar_id":"","url":"https://api.github.com/users/jivewise","html_url":"https://github.com/jivewise","followers_url":"https://api.github.com/users/jivewise/followers","following_url":"https://api.github.com/users/jivewise/following{/other_user}","gists_url":"https://api.github.com/users/jivewise/gists{/gist_id}","starred_url":"https://api.github.com/users/jivewise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jivewise/subscriptions","organizations_url":"https://api.github.com/users/jivewise/orgs","repos_url":"https://api.github.com/users/jivewise/repos","events_url":"https://api.github.com/users/jivewise/events{/privacy}","received_events_url":"https://api.github.com/users/jivewise/received_events","type":"User","site_admin":false},"body":"![screen shot 2015-04-24 at 9 10 27 pm](https://cloud.githubusercontent.com/assets/6434717/7319252/b8848316-eac6-11e4-8c38-eb17f22dbf7e.png)\r\n- [x] Refactored select reading to use dialog\r\n- [x] Updated reading to use new select reading dialog\r\n- [x] Refactored exercise components out of homework\r\n- [x] Started adding in some specs\r\n\r\n","created_at":"2015-04-24T13:13:41Z","updated_at":"2015-04-24T14:09:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e8746053917b12efa7bda243ae4719a790debee5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openstax/tutor-js/pulls/134/commits","review_comments_url":"https://api.github.com/repos/openstax/tutor-js/pulls/134/comments","review_comment_url":"https://api.github.com/repos/openstax/tutor-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openstax/tutor-js/issues/134/comments","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/3173a86f79c55f2fa91149d11f6ffbe7c1133741","head":{"label":"openstax:select-reading-dialog","ref":"select-reading-dialog","sha":"3173a86f79c55f2fa91149d11f6ffbe7c1133741","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":24433756,"name":"tutor-js","full_name":"openstax/tutor-js","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/tutor-js","description":"Javascript frontend for openstax tutor","fork":false,"url":"https://api.github.com/repos/openstax/tutor-js","forks_url":"https://api.github.com/repos/openstax/tutor-js/forks","keys_url":"https://api.github.com/repos/openstax/tutor-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/tutor-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/tutor-js/teams","hooks_url":"https://api.github.com/repos/openstax/tutor-js/hooks","issue_events_url":"https://api.github.com/repos/openstax/tutor-js/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/tutor-js/events","assignees_url":"https://api.github.com/repos/openstax/tutor-js/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/tutor-js/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/tutor-js/tags","blobs_url":"https://api.github.com/repos/openstax/tutor-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/tutor-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/tutor-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/tutor-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/tutor-js/languages","stargazers_url":"https://api.github.com/repos/openstax/tutor-js/stargazers","contributors_url":"https://api.github.com/repos/openstax/tutor-js/contributors","subscribers_url":"https://api.github.com/repos/openstax/tutor-js/subscribers","subscription_url":"https://api.github.com/repos/openstax/tutor-js/subscription","commits_url":"https://api.github.com/repos/openstax/tutor-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/tutor-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/tutor-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/tutor-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/tutor-js/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/tutor-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/tutor-js/merges","archive_url":"https://api.github.com/repos/openstax/tutor-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/tutor-js/downloads","issues_url":"https://api.github.com/repos/openstax/tutor-js/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/tutor-js/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/tutor-js/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/tutor-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/tutor-js/labels{/name}","releases_url":"https://api.github.com/repos/openstax/tutor-js/releases{/id}","created_at":"2014-09-24T21:42:26Z","updated_at":"2015-04-23T22:24:58Z","pushed_at":"2015-04-24T13:13:42Z","git_url":"git://github.com/openstax/tutor-js.git","ssh_url":"git@github.com:openstax/tutor-js.git","clone_url":"https://github.com/openstax/tutor-js.git","svn_url":"https://github.com/openstax/tutor-js","homepage":"","size":4924,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"base":{"label":"openstax:master","ref":"master","sha":"21f506482bd9d40f95f63ea7014c73a28abdcfe3","user":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"repo":{"id":24433756,"name":"tutor-js","full_name":"openstax/tutor-js","owner":{"login":"openstax","id":3805549,"avatar_url":"https://avatars.githubusercontent.com/u/3805549?v=3","gravatar_id":"","url":"https://api.github.com/users/openstax","html_url":"https://github.com/openstax","followers_url":"https://api.github.com/users/openstax/followers","following_url":"https://api.github.com/users/openstax/following{/other_user}","gists_url":"https://api.github.com/users/openstax/gists{/gist_id}","starred_url":"https://api.github.com/users/openstax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openstax/subscriptions","organizations_url":"https://api.github.com/users/openstax/orgs","repos_url":"https://api.github.com/users/openstax/repos","events_url":"https://api.github.com/users/openstax/events{/privacy}","received_events_url":"https://api.github.com/users/openstax/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openstax/tutor-js","description":"Javascript frontend for openstax tutor","fork":false,"url":"https://api.github.com/repos/openstax/tutor-js","forks_url":"https://api.github.com/repos/openstax/tutor-js/forks","keys_url":"https://api.github.com/repos/openstax/tutor-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openstax/tutor-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openstax/tutor-js/teams","hooks_url":"https://api.github.com/repos/openstax/tutor-js/hooks","issue_events_url":"https://api.github.com/repos/openstax/tutor-js/issues/events{/number}","events_url":"https://api.github.com/repos/openstax/tutor-js/events","assignees_url":"https://api.github.com/repos/openstax/tutor-js/assignees{/user}","branches_url":"https://api.github.com/repos/openstax/tutor-js/branches{/branch}","tags_url":"https://api.github.com/repos/openstax/tutor-js/tags","blobs_url":"https://api.github.com/repos/openstax/tutor-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openstax/tutor-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openstax/tutor-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/openstax/tutor-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openstax/tutor-js/statuses/{sha}","languages_url":"https://api.github.com/repos/openstax/tutor-js/languages","stargazers_url":"https://api.github.com/repos/openstax/tutor-js/stargazers","contributors_url":"https://api.github.com/repos/openstax/tutor-js/contributors","subscribers_url":"https://api.github.com/repos/openstax/tutor-js/subscribers","subscription_url":"https://api.github.com/repos/openstax/tutor-js/subscription","commits_url":"https://api.github.com/repos/openstax/tutor-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/openstax/tutor-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/openstax/tutor-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/openstax/tutor-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/openstax/tutor-js/contents/{+path}","compare_url":"https://api.github.com/repos/openstax/tutor-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openstax/tutor-js/merges","archive_url":"https://api.github.com/repos/openstax/tutor-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openstax/tutor-js/downloads","issues_url":"https://api.github.com/repos/openstax/tutor-js/issues{/number}","pulls_url":"https://api.github.com/repos/openstax/tutor-js/pulls{/number}","milestones_url":"https://api.github.com/repos/openstax/tutor-js/milestones{/number}","notifications_url":"https://api.github.com/repos/openstax/tutor-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openstax/tutor-js/labels{/name}","releases_url":"https://api.github.com/repos/openstax/tutor-js/releases{/id}","created_at":"2014-09-24T21:42:26Z","updated_at":"2015-04-23T22:24:58Z","pushed_at":"2015-04-24T13:13:42Z","git_url":"git://github.com/openstax/tutor-js.git","ssh_url":"git@github.com:openstax/tutor-js.git","clone_url":"https://github.com/openstax/tutor-js.git","svn_url":"https://github.com/openstax/tutor-js","homepage":"","size":4924,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/134"},"html":{"href":"https://github.com/openstax/tutor-js/pull/134"},"issue":{"href":"https://api.github.com/repos/openstax/tutor-js/issues/134"},"comments":{"href":"https://api.github.com/repos/openstax/tutor-js/issues/134/comments"},"review_comments":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/134/comments"},"review_comment":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openstax/tutor-js/pulls/134/commits"},"statuses":{"href":"https://api.github.com/repos/openstax/tutor-js/statuses/3173a86f79c55f2fa91149d11f6ffbe7c1133741"}}}}