{"action":"created","comment":{"url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/comments/56129633","id":56129633,"diff_hunk":"@@ -1 +1,2 @@\n $('input#equipment_inspection_cycle_month').prop('disabled', <%= !@inspection_contract %>);\n+$('input#equipment_inspection_cycle_month').val('<%= @system_model.inspection_cycle_month if @inspection_contract %>');","path":"app/views/equipment/change_inspection_contract.js.erb","position":2,"original_position":2,"commit_id":"7cd5d248a7d2d0ec3b9b664e5e53c987e6510ca8","original_commit_id":"7cd5d248a7d2d0ec3b9b664e5e53c987e6510ca8","user":{"login":"ogihara-ryo","id":11517870,"avatar_url":"https://avatars.githubusercontent.com/u/11517870?v=3","gravatar_id":"","url":"https://api.github.com/users/ogihara-ryo","html_url":"https://github.com/ogihara-ryo","followers_url":"https://api.github.com/users/ogihara-ryo/followers","following_url":"https://api.github.com/users/ogihara-ryo/following{/other_user}","gists_url":"https://api.github.com/users/ogihara-ryo/gists{/gist_id}","starred_url":"https://api.github.com/users/ogihara-ryo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogihara-ryo/subscriptions","organizations_url":"https://api.github.com/users/ogihara-ryo/orgs","repos_url":"https://api.github.com/users/ogihara-ryo/repos","events_url":"https://api.github.com/users/ogihara-ryo/events{/privacy}","received_events_url":"https://api.github.com/users/ogihara-ryo/received_events","type":"User","site_admin":false},"body":"JavaScript は安全にセミコロンの位置が推測できる場合は自動で付与してくれるので\r\nC みたいにコンパイル時エラーになったりはしませんが、付けておいた方が良い場合が多いです。\r\n賛否両論ありますが。。ちなみに別ファイルで付け忘れてるのは僕のミスです。(すみません)\r\n","created_at":"2016-03-15T08:39:39Z","updated_at":"2016-03-15T08:39:39Z","html_url":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90#discussion_r56129633","pull_request_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90","_links":{"self":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/comments/56129633"},"html":{"href":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90#discussion_r56129633"},"pull_request":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90"}}},"pull_request":{"url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90","id":62847267,"html_url":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90","diff_url":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90.diff","patch_url":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90.patch","issue_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/90","number":90,"state":"open","locked":false,"title":"TK-01067, TK-01068, TK01069, TK-01066 (表示関係残件詰め合わせ)","user":{"login":"yamadashizuka","id":2647821,"avatar_url":"https://avatars.githubusercontent.com/u/2647821?v=3","gravatar_id":"","url":"https://api.github.com/users/yamadashizuka","html_url":"https://github.com/yamadashizuka","followers_url":"https://api.github.com/users/yamadashizuka/followers","following_url":"https://api.github.com/users/yamadashizuka/following{/other_user}","gists_url":"https://api.github.com/users/yamadashizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/yamadashizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamadashizuka/subscriptions","organizations_url":"https://api.github.com/users/yamadashizuka/orgs","repos_url":"https://api.github.com/users/yamadashizuka/repos","events_url":"https://api.github.com/users/yamadashizuka/events{/privacy}","received_events_url":"https://api.github.com/users/yamadashizuka/received_events","type":"User","site_admin":false},"body":"TK-01067:同一設置場所の所有機の点検周期をまとめて変える時の点検契約無の考慮\r\n１．同一設置場所の所有機一覧の表示項目を調整\r\n　　※試運転日、点検契約(有無)を表示するようにした\r\n２．点検周期は点検契約=有の時だけ表示するようにするようにした\r\n３．変更対象を選ぶチェックボックスは点検契約＝有の時だけチェック可(無の時はチェック不可)とした\r\n４．点検契約の有無文字列のためにヘルパーの inspection_contract_string を使いたかった…のだけど\r\n　　見たら @equipment を使ってたので引数を渡すように修正＆使ってる show も併せて修正\r\n５．[削除」のリンクが出るのはYES本社ユーザーの時だけにする\r\n\r\nTK-01068:点検予定の詳細で「確定日時」に時が出てない\r\n１．確定日時(年月日時まで)表示用のフォーマットを作って使うようにした\r\n２．あわせて、i18n的な書き方になってなかったところを一緒に修正\r\n\r\nTK-01069:サービス会社ユーザーがログインした場合は点検予定一覧系の「担当」はナシで\r\n１．InspectionScheduleHelper に表示するかどうか判断する系のを追加\r\n２．↑を使ってサービス会社の時だけ「担当」が出るようにした\r\n３．ついでに「要点検依頼一覧」の時は(担当が決まってないものの一覧なので)「担当」列の表示はナシにした\r\n\r\nask TK-01066:装置システムので点検契約を「無」→「有」に変更した場合に点検周期が自動セットされない\r\n１．所有機の更新画面で点検契約有無を変更した時の処理を修正\r\n　　a. 無⇒有の時：型式の点検周期が[点検周期]入力エリアにセットされる\r\n　　b. 有⇒無の時：[点検周期]エリアをクリア　※たぶんこれでいいはず……\r\n","created_at":"2016-03-15T02:36:19Z","updated_at":"2016-03-15T08:39:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f908622248764366c70adcf4fb949fd8de01bb25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90/commits","review_comments_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90/comments","review_comment_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/90/comments","statuses_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/statuses/7cd5d248a7d2d0ec3b9b664e5e53c987e6510ca8","head":{"label":"yamadashizuka:TK-01067","ref":"TK-01067","sha":"7cd5d248a7d2d0ec3b9b664e5e53c987e6510ca8","user":{"login":"yamadashizuka","id":2647821,"avatar_url":"https://avatars.githubusercontent.com/u/2647821?v=3","gravatar_id":"","url":"https://api.github.com/users/yamadashizuka","html_url":"https://github.com/yamadashizuka","followers_url":"https://api.github.com/users/yamadashizuka/followers","following_url":"https://api.github.com/users/yamadashizuka/following{/other_user}","gists_url":"https://api.github.com/users/yamadashizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/yamadashizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamadashizuka/subscriptions","organizations_url":"https://api.github.com/users/yamadashizuka/orgs","repos_url":"https://api.github.com/users/yamadashizuka/repos","events_url":"https://api.github.com/users/yamadashizuka/events{/privacy}","received_events_url":"https://api.github.com/users/yamadashizuka/received_events","type":"User","site_admin":false},"repo":{"id":50160114,"name":"fjpy","full_name":"yamadashizuka/fjpy","owner":{"login":"yamadashizuka","id":2647821,"avatar_url":"https://avatars.githubusercontent.com/u/2647821?v=3","gravatar_id":"","url":"https://api.github.com/users/yamadashizuka","html_url":"https://github.com/yamadashizuka","followers_url":"https://api.github.com/users/yamadashizuka/followers","following_url":"https://api.github.com/users/yamadashizuka/following{/other_user}","gists_url":"https://api.github.com/users/yamadashizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/yamadashizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamadashizuka/subscriptions","organizations_url":"https://api.github.com/users/yamadashizuka/orgs","repos_url":"https://api.github.com/users/yamadashizuka/repos","events_url":"https://api.github.com/users/yamadashizuka/events{/privacy}","received_events_url":"https://api.github.com/users/yamadashizuka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yamadashizuka/fjpy","description":"kilogy の copy ","fork":true,"url":"https://api.github.com/repos/yamadashizuka/fjpy","forks_url":"https://api.github.com/repos/yamadashizuka/fjpy/forks","keys_url":"https://api.github.com/repos/yamadashizuka/fjpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yamadashizuka/fjpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yamadashizuka/fjpy/teams","hooks_url":"https://api.github.com/repos/yamadashizuka/fjpy/hooks","issue_events_url":"https://api.github.com/repos/yamadashizuka/fjpy/issues/events{/number}","events_url":"https://api.github.com/repos/yamadashizuka/fjpy/events","assignees_url":"https://api.github.com/repos/yamadashizuka/fjpy/assignees{/user}","branches_url":"https://api.github.com/repos/yamadashizuka/fjpy/branches{/branch}","tags_url":"https://api.github.com/repos/yamadashizuka/fjpy/tags","blobs_url":"https://api.github.com/repos/yamadashizuka/fjpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yamadashizuka/fjpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yamadashizuka/fjpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/yamadashizuka/fjpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yamadashizuka/fjpy/statuses/{sha}","languages_url":"https://api.github.com/repos/yamadashizuka/fjpy/languages","stargazers_url":"https://api.github.com/repos/yamadashizuka/fjpy/stargazers","contributors_url":"https://api.github.com/repos/yamadashizuka/fjpy/contributors","subscribers_url":"https://api.github.com/repos/yamadashizuka/fjpy/subscribers","subscription_url":"https://api.github.com/repos/yamadashizuka/fjpy/subscription","commits_url":"https://api.github.com/repos/yamadashizuka/fjpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/yamadashizuka/fjpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/yamadashizuka/fjpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/yamadashizuka/fjpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/yamadashizuka/fjpy/contents/{+path}","compare_url":"https://api.github.com/repos/yamadashizuka/fjpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yamadashizuka/fjpy/merges","archive_url":"https://api.github.com/repos/yamadashizuka/fjpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yamadashizuka/fjpy/downloads","issues_url":"https://api.github.com/repos/yamadashizuka/fjpy/issues{/number}","pulls_url":"https://api.github.com/repos/yamadashizuka/fjpy/pulls{/number}","milestones_url":"https://api.github.com/repos/yamadashizuka/fjpy/milestones{/number}","notifications_url":"https://api.github.com/repos/yamadashizuka/fjpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yamadashizuka/fjpy/labels{/name}","releases_url":"https://api.github.com/repos/yamadashizuka/fjpy/releases{/id}","deployments_url":"https://api.github.com/repos/yamadashizuka/fjpy/deployments","created_at":"2016-01-22T05:36:00Z","updated_at":"2016-01-22T06:43:23Z","pushed_at":"2016-03-15T08:24:00Z","git_url":"git://github.com/yamadashizuka/fjpy.git","ssh_url":"git@github.com:yamadashizuka/fjpy.git","clone_url":"https://github.com/yamadashizuka/fjpy.git","svn_url":"https://github.com/yamadashizuka/fjpy","homepage":null,"size":592,"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":"ogis-Yamada-Shizuka:develop","ref":"develop","sha":"22d7724638ed6d17480c26ced8d93693ef48f97f","user":{"login":"ogis-Yamada-Shizuka","id":7940983,"avatar_url":"https://avatars.githubusercontent.com/u/7940983?v=3","gravatar_id":"","url":"https://api.github.com/users/ogis-Yamada-Shizuka","html_url":"https://github.com/ogis-Yamada-Shizuka","followers_url":"https://api.github.com/users/ogis-Yamada-Shizuka/followers","following_url":"https://api.github.com/users/ogis-Yamada-Shizuka/following{/other_user}","gists_url":"https://api.github.com/users/ogis-Yamada-Shizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/ogis-Yamada-Shizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogis-Yamada-Shizuka/subscriptions","organizations_url":"https://api.github.com/users/ogis-Yamada-Shizuka/orgs","repos_url":"https://api.github.com/users/ogis-Yamada-Shizuka/repos","events_url":"https://api.github.com/users/ogis-Yamada-Shizuka/events{/privacy}","received_events_url":"https://api.github.com/users/ogis-Yamada-Shizuka/received_events","type":"User","site_admin":false},"repo":{"id":50159902,"name":"ACST","full_name":"ogis-Yamada-Shizuka/ACST","owner":{"login":"ogis-Yamada-Shizuka","id":7940983,"avatar_url":"https://avatars.githubusercontent.com/u/7940983?v=3","gravatar_id":"","url":"https://api.github.com/users/ogis-Yamada-Shizuka","html_url":"https://github.com/ogis-Yamada-Shizuka","followers_url":"https://api.github.com/users/ogis-Yamada-Shizuka/followers","following_url":"https://api.github.com/users/ogis-Yamada-Shizuka/following{/other_user}","gists_url":"https://api.github.com/users/ogis-Yamada-Shizuka/gists{/gist_id}","starred_url":"https://api.github.com/users/ogis-Yamada-Shizuka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogis-Yamada-Shizuka/subscriptions","organizations_url":"https://api.github.com/users/ogis-Yamada-Shizuka/orgs","repos_url":"https://api.github.com/users/ogis-Yamada-Shizuka/repos","events_url":"https://api.github.com/users/ogis-Yamada-Shizuka/events{/privacy}","received_events_url":"https://api.github.com/users/ogis-Yamada-Shizuka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ogis-Yamada-Shizuka/ACST","description":"Active Communication Service Tool 通称 \"ACST(アシスト)\" ","fork":false,"url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST","forks_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/forks","keys_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/teams","hooks_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/hooks","issue_events_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/events{/number}","events_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/events","assignees_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/assignees{/user}","branches_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/branches{/branch}","tags_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/tags","blobs_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/git/refs{/sha}","trees_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/statuses/{sha}","languages_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/languages","stargazers_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/stargazers","contributors_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/contributors","subscribers_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/subscribers","subscription_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/subscription","commits_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/commits{/sha}","git_commits_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/git/commits{/sha}","comments_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/comments{/number}","issue_comment_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/comments{/number}","contents_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/contents/{+path}","compare_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/merges","archive_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/downloads","issues_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues{/number}","pulls_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls{/number}","milestones_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/milestones{/number}","notifications_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/labels{/name}","releases_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/releases{/id}","deployments_url":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/deployments","created_at":"2016-01-22T05:31:10Z","updated_at":"2016-01-29T06:10:35Z","pushed_at":"2016-03-15T08:24:01Z","git_url":"git://github.com/ogis-Yamada-Shizuka/ACST.git","ssh_url":"git@github.com:ogis-Yamada-Shizuka/ACST.git","clone_url":"https://github.com/ogis-Yamada-Shizuka/ACST.git","svn_url":"https://github.com/ogis-Yamada-Shizuka/ACST","homepage":"","size":676,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90"},"html":{"href":"https://github.com/ogis-Yamada-Shizuka/ACST/pull/90"},"issue":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/90"},"comments":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/issues/90/comments"},"review_comments":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90/comments"},"review_comment":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/pulls/90/commits"},"statuses":{"href":"https://api.github.com/repos/ogis-Yamada-Shizuka/ACST/statuses/7cd5d248a7d2d0ec3b9b664e5e53c987e6510ca8"}}}}