{"action":"created","comment":{"url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/comments/63353259","id":63353259,"diff_hunk":"@@ -1,22 +1,32 @@\n class MS.Views.CalendarStepModalView extends Backbone.View\n \n-  el: '.calendar'\n+  el: '#calendar-step-modal'\n+\n+  initialize: (params) ->\n+    @context = params.context\n+    if params.id\n+      @id = params.id\n+      @showStep()\n+    else\n+      @loanId = params.loanId\n+      @showNewStep()\n \n   events:\n-    'click .loan-calendar .cal-step': 'showStepModal'\n-    'click a.action-delete': 'deleteStep'\n+    'click a.action-delete': 'hideModal'\n+    'click #new_project_step .cancel': 'hideModal'\n+\n+  showStep: ->\n+    $.get '/admin/project_steps/' + @id, context: @context, (html) =>","path":"app/assets/javascripts/backbone/views/calendar_step_modal_view.coffee","position":22,"original_position":22,"commit_id":"3624899d75a6267d9e09080d65279d58710f6b38","original_commit_id":"3624899d75a6267d9e09080d65279d58710f6b38","user":{"login":"hooverlunch","id":702320,"avatar_url":"https://avatars.githubusercontent.com/u/702320?v=3","gravatar_id":"","url":"https://api.github.com/users/hooverlunch","html_url":"https://github.com/hooverlunch","followers_url":"https://api.github.com/users/hooverlunch/followers","following_url":"https://api.github.com/users/hooverlunch/following{/other_user}","gists_url":"https://api.github.com/users/hooverlunch/gists{/gist_id}","starred_url":"https://api.github.com/users/hooverlunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hooverlunch/subscriptions","organizations_url":"https://api.github.com/users/hooverlunch/orgs","repos_url":"https://api.github.com/users/hooverlunch/repos","events_url":"https://api.github.com/users/hooverlunch/events{/privacy}","received_events_url":"https://api.github.com/users/hooverlunch/received_events","type":"User","site_admin":false},"body":"Please use string interpolation in cases like these: `\"/admin/project_steps/#{@id}\"`","created_at":"2016-05-16T13:39:36Z","updated_at":"2016-05-16T13:39:36Z","html_url":"https://github.com/sassafrastech/madeline_system/pull/78#discussion_r63353259","pull_request_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78","_links":{"self":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/comments/63353259"},"html":{"href":"https://github.com/sassafrastech/madeline_system/pull/78#discussion_r63353259"},"pull_request":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78"}}},"pull_request":{"url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78","id":69163239,"html_url":"https://github.com/sassafrastech/madeline_system/pull/78","diff_url":"https://github.com/sassafrastech/madeline_system/pull/78.diff","patch_url":"https://github.com/sassafrastech/madeline_system/pull/78.patch","issue_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/78","number":78,"state":"open","locked":false,"title":"3774 click day new step","user":{"login":"emitche","id":1853878,"avatar_url":"https://avatars.githubusercontent.com/u/1853878?v=3","gravatar_id":"","url":"https://api.github.com/users/emitche","html_url":"https://github.com/emitche","followers_url":"https://api.github.com/users/emitche/followers","following_url":"https://api.github.com/users/emitche/following{/other_user}","gists_url":"https://api.github.com/users/emitche/gists{/gist_id}","starred_url":"https://api.github.com/users/emitche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emitche/subscriptions","organizations_url":"https://api.github.com/users/emitche/orgs","repos_url":"https://api.github.com/users/emitche/repos","events_url":"https://api.github.com/users/emitche/events{/privacy}","received_events_url":"https://api.github.com/users/emitche/received_events","type":"User","site_admin":false},"body":"Allow a project step to be created from a loan calendar day","created_at":"2016-05-06T14:59:00Z","updated_at":"2016-05-16T13:39:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"85ff952009c5afca167fc58f46025028ef107bc5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78/commits","review_comments_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78/comments","review_comment_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/78/comments","statuses_url":"https://api.github.com/repos/sassafrastech/madeline_system/statuses/3624899d75a6267d9e09080d65279d58710f6b38","head":{"label":"sassafrastech:3774_click_day_new_step","ref":"3774_click_day_new_step","sha":"3624899d75a6267d9e09080d65279d58710f6b38","user":{"login":"sassafrastech","id":5033102,"avatar_url":"https://avatars.githubusercontent.com/u/5033102?v=3","gravatar_id":"","url":"https://api.github.com/users/sassafrastech","html_url":"https://github.com/sassafrastech","followers_url":"https://api.github.com/users/sassafrastech/followers","following_url":"https://api.github.com/users/sassafrastech/following{/other_user}","gists_url":"https://api.github.com/users/sassafrastech/gists{/gist_id}","starred_url":"https://api.github.com/users/sassafrastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sassafrastech/subscriptions","organizations_url":"https://api.github.com/users/sassafrastech/orgs","repos_url":"https://api.github.com/users/sassafrastech/repos","events_url":"https://api.github.com/users/sassafrastech/events{/privacy}","received_events_url":"https://api.github.com/users/sassafrastech/received_events","type":"Organization","site_admin":false},"repo":{"id":48768255,"name":"madeline_system","full_name":"sassafrastech/madeline_system","owner":{"login":"sassafrastech","id":5033102,"avatar_url":"https://avatars.githubusercontent.com/u/5033102?v=3","gravatar_id":"","url":"https://api.github.com/users/sassafrastech","html_url":"https://github.com/sassafrastech","followers_url":"https://api.github.com/users/sassafrastech/followers","following_url":"https://api.github.com/users/sassafrastech/following{/other_user}","gists_url":"https://api.github.com/users/sassafrastech/gists{/gist_id}","starred_url":"https://api.github.com/users/sassafrastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sassafrastech/subscriptions","organizations_url":"https://api.github.com/users/sassafrastech/orgs","repos_url":"https://api.github.com/users/sassafrastech/repos","events_url":"https://api.github.com/users/sassafrastech/events{/privacy}","received_events_url":"https://api.github.com/users/sassafrastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sassafrastech/madeline_system","description":"","fork":false,"url":"https://api.github.com/repos/sassafrastech/madeline_system","forks_url":"https://api.github.com/repos/sassafrastech/madeline_system/forks","keys_url":"https://api.github.com/repos/sassafrastech/madeline_system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sassafrastech/madeline_system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sassafrastech/madeline_system/teams","hooks_url":"https://api.github.com/repos/sassafrastech/madeline_system/hooks","issue_events_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/events{/number}","events_url":"https://api.github.com/repos/sassafrastech/madeline_system/events","assignees_url":"https://api.github.com/repos/sassafrastech/madeline_system/assignees{/user}","branches_url":"https://api.github.com/repos/sassafrastech/madeline_system/branches{/branch}","tags_url":"https://api.github.com/repos/sassafrastech/madeline_system/tags","blobs_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/refs{/sha}","trees_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sassafrastech/madeline_system/statuses/{sha}","languages_url":"https://api.github.com/repos/sassafrastech/madeline_system/languages","stargazers_url":"https://api.github.com/repos/sassafrastech/madeline_system/stargazers","contributors_url":"https://api.github.com/repos/sassafrastech/madeline_system/contributors","subscribers_url":"https://api.github.com/repos/sassafrastech/madeline_system/subscribers","subscription_url":"https://api.github.com/repos/sassafrastech/madeline_system/subscription","commits_url":"https://api.github.com/repos/sassafrastech/madeline_system/commits{/sha}","git_commits_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/commits{/sha}","comments_url":"https://api.github.com/repos/sassafrastech/madeline_system/comments{/number}","issue_comment_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/comments{/number}","contents_url":"https://api.github.com/repos/sassafrastech/madeline_system/contents/{+path}","compare_url":"https://api.github.com/repos/sassafrastech/madeline_system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sassafrastech/madeline_system/merges","archive_url":"https://api.github.com/repos/sassafrastech/madeline_system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sassafrastech/madeline_system/downloads","issues_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues{/number}","pulls_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls{/number}","milestones_url":"https://api.github.com/repos/sassafrastech/madeline_system/milestones{/number}","notifications_url":"https://api.github.com/repos/sassafrastech/madeline_system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sassafrastech/madeline_system/labels{/name}","releases_url":"https://api.github.com/repos/sassafrastech/madeline_system/releases{/id}","deployments_url":"https://api.github.com/repos/sassafrastech/madeline_system/deployments","created_at":"2015-12-29T21:38:53Z","updated_at":"2016-01-12T00:19:27Z","pushed_at":"2016-05-13T17:11:55Z","git_url":"git://github.com/sassafrastech/madeline_system.git","ssh_url":"git@github.com:sassafrastech/madeline_system.git","clone_url":"https://github.com/sassafrastech/madeline_system.git","svn_url":"https://github.com/sassafrastech/madeline_system","homepage":null,"size":2752,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"develop"}},"base":{"label":"sassafrastech:develop","ref":"develop","sha":"601ab66a285903135c7d1e893e74f1504f45d853","user":{"login":"sassafrastech","id":5033102,"avatar_url":"https://avatars.githubusercontent.com/u/5033102?v=3","gravatar_id":"","url":"https://api.github.com/users/sassafrastech","html_url":"https://github.com/sassafrastech","followers_url":"https://api.github.com/users/sassafrastech/followers","following_url":"https://api.github.com/users/sassafrastech/following{/other_user}","gists_url":"https://api.github.com/users/sassafrastech/gists{/gist_id}","starred_url":"https://api.github.com/users/sassafrastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sassafrastech/subscriptions","organizations_url":"https://api.github.com/users/sassafrastech/orgs","repos_url":"https://api.github.com/users/sassafrastech/repos","events_url":"https://api.github.com/users/sassafrastech/events{/privacy}","received_events_url":"https://api.github.com/users/sassafrastech/received_events","type":"Organization","site_admin":false},"repo":{"id":48768255,"name":"madeline_system","full_name":"sassafrastech/madeline_system","owner":{"login":"sassafrastech","id":5033102,"avatar_url":"https://avatars.githubusercontent.com/u/5033102?v=3","gravatar_id":"","url":"https://api.github.com/users/sassafrastech","html_url":"https://github.com/sassafrastech","followers_url":"https://api.github.com/users/sassafrastech/followers","following_url":"https://api.github.com/users/sassafrastech/following{/other_user}","gists_url":"https://api.github.com/users/sassafrastech/gists{/gist_id}","starred_url":"https://api.github.com/users/sassafrastech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sassafrastech/subscriptions","organizations_url":"https://api.github.com/users/sassafrastech/orgs","repos_url":"https://api.github.com/users/sassafrastech/repos","events_url":"https://api.github.com/users/sassafrastech/events{/privacy}","received_events_url":"https://api.github.com/users/sassafrastech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sassafrastech/madeline_system","description":"","fork":false,"url":"https://api.github.com/repos/sassafrastech/madeline_system","forks_url":"https://api.github.com/repos/sassafrastech/madeline_system/forks","keys_url":"https://api.github.com/repos/sassafrastech/madeline_system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sassafrastech/madeline_system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sassafrastech/madeline_system/teams","hooks_url":"https://api.github.com/repos/sassafrastech/madeline_system/hooks","issue_events_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/events{/number}","events_url":"https://api.github.com/repos/sassafrastech/madeline_system/events","assignees_url":"https://api.github.com/repos/sassafrastech/madeline_system/assignees{/user}","branches_url":"https://api.github.com/repos/sassafrastech/madeline_system/branches{/branch}","tags_url":"https://api.github.com/repos/sassafrastech/madeline_system/tags","blobs_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/refs{/sha}","trees_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sassafrastech/madeline_system/statuses/{sha}","languages_url":"https://api.github.com/repos/sassafrastech/madeline_system/languages","stargazers_url":"https://api.github.com/repos/sassafrastech/madeline_system/stargazers","contributors_url":"https://api.github.com/repos/sassafrastech/madeline_system/contributors","subscribers_url":"https://api.github.com/repos/sassafrastech/madeline_system/subscribers","subscription_url":"https://api.github.com/repos/sassafrastech/madeline_system/subscription","commits_url":"https://api.github.com/repos/sassafrastech/madeline_system/commits{/sha}","git_commits_url":"https://api.github.com/repos/sassafrastech/madeline_system/git/commits{/sha}","comments_url":"https://api.github.com/repos/sassafrastech/madeline_system/comments{/number}","issue_comment_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues/comments{/number}","contents_url":"https://api.github.com/repos/sassafrastech/madeline_system/contents/{+path}","compare_url":"https://api.github.com/repos/sassafrastech/madeline_system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sassafrastech/madeline_system/merges","archive_url":"https://api.github.com/repos/sassafrastech/madeline_system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sassafrastech/madeline_system/downloads","issues_url":"https://api.github.com/repos/sassafrastech/madeline_system/issues{/number}","pulls_url":"https://api.github.com/repos/sassafrastech/madeline_system/pulls{/number}","milestones_url":"https://api.github.com/repos/sassafrastech/madeline_system/milestones{/number}","notifications_url":"https://api.github.com/repos/sassafrastech/madeline_system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sassafrastech/madeline_system/labels{/name}","releases_url":"https://api.github.com/repos/sassafrastech/madeline_system/releases{/id}","deployments_url":"https://api.github.com/repos/sassafrastech/madeline_system/deployments","created_at":"2015-12-29T21:38:53Z","updated_at":"2016-01-12T00:19:27Z","pushed_at":"2016-05-13T17:11:55Z","git_url":"git://github.com/sassafrastech/madeline_system.git","ssh_url":"git@github.com:sassafrastech/madeline_system.git","clone_url":"https://github.com/sassafrastech/madeline_system.git","svn_url":"https://github.com/sassafrastech/madeline_system","homepage":null,"size":2752,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78"},"html":{"href":"https://github.com/sassafrastech/madeline_system/pull/78"},"issue":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/issues/78"},"comments":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/issues/78/comments"},"review_comments":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78/comments"},"review_comment":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/pulls/78/commits"},"statuses":{"href":"https://api.github.com/repos/sassafrastech/madeline_system/statuses/3624899d75a6267d9e09080d65279d58710f6b38"}}}}