{"action":"created","comment":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/comments/88991480","pull_request_review_id":9545839,"id":88991480,"diff_hunk":"@@ -0,0 +1,82 @@\n+wagn.slotReady (slot) ->\n+  if slot.hasClass('new-view') && (slot.hasClass('TYPE-source') || slot.hasClass('TYPE-metric_value'))\n+# bind listener to the tab anchor\n+    slot.find('#myTab').find(\"a\").click (e) ->\n+# update the source type\n+      source_type = $(this).data('source-type')\n+      source_type_subcard = slot.find(\".RIGHT-Xsource_type\").find(\"input:hidden.card-content\")\n+      source_type_subcard.val(\"[[\" + source_type + \"]]\")\n+      source_type_subcard.siblings(\"ul\").find(\"input[value=\" + source_type + \"]\").prop(\"checked\", true)\n+\n+$(window).ready ->\n+\n+  ###\n+    To autopopulate the meta data in the input fields in new source page\n+  ###\n+\n+#$('#card_subcards__File_attach').change ->\n+#$('.first-meta').fadeIn()\n+#return\n+#$('#text-tab').click ->\n+#plus_text_tinymce_eidtor = null\n+#i = 0\n+#while i < tinymce.editors.length\n+#if tinymce.editors[i].editorId.indexOf('+text') > -1\n+#plus_text_tinymce_eidtor = tinymce.editors[i]\n+#i++\n+#if plus_text_tinymce_eidtor\n+#plus_text_tinymce_eidtor.onKeyUp.add (ed, l) ->\n+#if !$('.first-meta').is(':visible')\n+#$('.first-meta').fadeIn()\n+#return\n+#return\n+  $('#add-company-and-topic').click (e) ->\n+    e.preventDefault()\n+    $('#company-topic-meta').fadeIn()\n+    $('#add-company-and-topic').hide()\n+    return\n+  $('#add-tags-other').click (e) ->\n+    e.preventDefault()\n+    $('#tag-date-others-meta').fadeIn()\n+    $('#add-tags-other').hide()\n+    return\n+\n+  # update source type\n+\n+\n+  $('#suggest_button').on 'click', ->\n+    sourceElement = $('#card_subcards__Link_content')\n+    errorDiv = '<div class=\"sourceErrorMsg\"> Invalid URL. (Valid URL looks like \"http://www.example.com\")</div>'\n+    if !sourceElement.val().match(/^http/)\n+      if sourceElement.siblings('.sourceErrorMsg').length > 0 then '' else sourceElement.after(errorDiv)\n+      return false\n+    else\n+      sourceElement.siblings('.sourceErrorMsg').remove()\n+    if $(this).parents(\".modal.fade\").length >= 1\n+      return false\n+    else\n+      loaderHTML = '<span class=\\'addSourceLoader\\'>Loading Metadata...</span>'\n+      if sourceElement.siblings('.addSourceLoader').length > 0 then '' else sourceElement.after(loaderHTML)\n+    $('#loading').fadeIn()\n+    titleElement = $('#card_subcards__Title_content')\n+    websiteElement = $('#card_subcards__Website_content').siblings('.pointer-list-ul').find('.pointer-item-text')\n+    url = sourceElement.val()\n+    metaReqObj = {}\n+    metaReqObj.view = 'metadata'\n+    metaReqObj.url = url\n+    $.ajax(wagn.rootPath + '/source.json?' + $.param(metaReqObj)).done((response) ->\n+      titleElement.val response.title\n+      websiteElement.focusin().val(response.website).focusout()\n+      id = $('.new-view.TYPE-source .RIGHT-description').find('textarea:first').attr('id')","path":"mod/wikirate_source/lib/javascript/script_new_source_page.js.coffee","position":70,"original_position":70,"commit_id":"6c5ea6d155e1973104654b0fc53a19bbcc78b1a0","original_commit_id":"6c5ea6d155e1973104654b0fc53a19bbcc78b1a0","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Line exceeds maximum allowed length. Length is 90, max is 80.","created_at":"2016-11-21T21:26:01Z","updated_at":"2016-11-21T21:26:01Z","html_url":"https://github.com/wagn/wikirate/pull/528#discussion_r88991480","pull_request_url":"https://api.github.com/repos/wagn/wikirate/pulls/528","_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments/88991480"},"html":{"href":"https://github.com/wagn/wikirate/pull/528#discussion_r88991480"},"pull_request":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/528"}}},"pull_request":{"url":"https://api.github.com/repos/wagn/wikirate/pulls/528","id":94699567,"html_url":"https://github.com/wagn/wikirate/pull/528","diff_url":"https://github.com/wagn/wikirate/pull/528.diff","patch_url":"https://github.com/wagn/wikirate/pull/528.patch","issue_url":"https://api.github.com/repos/wagn/wikirate/issues/528","number":528,"state":"open","locked":false,"title":"company page 2","user":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"body":"now running tests?","created_at":"2016-11-21T21:25:11Z","updated_at":"2016-11-21T21:26:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11ad8f1f64ae8eaca21312fae6c5214390493093","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wagn/wikirate/pulls/528/commits","review_comments_url":"https://api.github.com/repos/wagn/wikirate/pulls/528/comments","review_comment_url":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wagn/wikirate/issues/528/comments","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/6c5ea6d155e1973104654b0fc53a19bbcc78b1a0","head":{"label":"ethn:master","ref":"master","sha":"6c5ea6d155e1973104654b0fc53a19bbcc78b1a0","user":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"repo":{"id":25889305,"name":"wikirate","full_name":"ethn/wikirate","owner":{"login":"ethn","id":21904,"avatar_url":"https://avatars.githubusercontent.com/u/21904?v=3","gravatar_id":"","url":"https://api.github.com/users/ethn","html_url":"https://github.com/ethn","followers_url":"https://api.github.com/users/ethn/followers","following_url":"https://api.github.com/users/ethn/following{/other_user}","gists_url":"https://api.github.com/users/ethn/gists{/gist_id}","starred_url":"https://api.github.com/users/ethn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethn/subscriptions","organizations_url":"https://api.github.com/users/ethn/orgs","repos_url":"https://api.github.com/users/ethn/repos","events_url":"https://api.github.com/users/ethn/events{/privacy}","received_events_url":"https://api.github.com/users/ethn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ethn/wikirate","description":null,"fork":true,"url":"https://api.github.com/repos/ethn/wikirate","forks_url":"https://api.github.com/repos/ethn/wikirate/forks","keys_url":"https://api.github.com/repos/ethn/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ethn/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ethn/wikirate/teams","hooks_url":"https://api.github.com/repos/ethn/wikirate/hooks","issue_events_url":"https://api.github.com/repos/ethn/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/ethn/wikirate/events","assignees_url":"https://api.github.com/repos/ethn/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/ethn/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/ethn/wikirate/tags","blobs_url":"https://api.github.com/repos/ethn/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ethn/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ethn/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/ethn/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ethn/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/ethn/wikirate/languages","stargazers_url":"https://api.github.com/repos/ethn/wikirate/stargazers","contributors_url":"https://api.github.com/repos/ethn/wikirate/contributors","subscribers_url":"https://api.github.com/repos/ethn/wikirate/subscribers","subscription_url":"https://api.github.com/repos/ethn/wikirate/subscription","commits_url":"https://api.github.com/repos/ethn/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/ethn/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/ethn/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/ethn/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/ethn/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/ethn/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ethn/wikirate/merges","archive_url":"https://api.github.com/repos/ethn/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ethn/wikirate/downloads","issues_url":"https://api.github.com/repos/ethn/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/ethn/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/ethn/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/ethn/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ethn/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/ethn/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/ethn/wikirate/deployments","created_at":"2014-10-28T20:46:09Z","updated_at":"2016-05-07T04:55:31Z","pushed_at":"2016-11-21T21:24:02Z","git_url":"git://github.com/ethn/wikirate.git","ssh_url":"git@github.com:ethn/wikirate.git","clone_url":"https://github.com/ethn/wikirate.git","svn_url":"https://github.com/ethn/wikirate","homepage":null,"size":106972,"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":"wagn:dev","ref":"dev","sha":"1188940e9795c6ca34052c58394a99d845f99d40","user":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"repo":{"id":15884166,"name":"wikirate","full_name":"wagn/wikirate","owner":{"login":"wagn","id":20722,"avatar_url":"https://avatars.githubusercontent.com/u/20722?v=3","gravatar_id":"","url":"https://api.github.com/users/wagn","html_url":"https://github.com/wagn","followers_url":"https://api.github.com/users/wagn/followers","following_url":"https://api.github.com/users/wagn/following{/other_user}","gists_url":"https://api.github.com/users/wagn/gists{/gist_id}","starred_url":"https://api.github.com/users/wagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wagn/subscriptions","organizations_url":"https://api.github.com/users/wagn/orgs","repos_url":"https://api.github.com/users/wagn/repos","events_url":"https://api.github.com/users/wagn/events{/privacy}","received_events_url":"https://api.github.com/users/wagn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wagn/wikirate","description":null,"fork":false,"url":"https://api.github.com/repos/wagn/wikirate","forks_url":"https://api.github.com/repos/wagn/wikirate/forks","keys_url":"https://api.github.com/repos/wagn/wikirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wagn/wikirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wagn/wikirate/teams","hooks_url":"https://api.github.com/repos/wagn/wikirate/hooks","issue_events_url":"https://api.github.com/repos/wagn/wikirate/issues/events{/number}","events_url":"https://api.github.com/repos/wagn/wikirate/events","assignees_url":"https://api.github.com/repos/wagn/wikirate/assignees{/user}","branches_url":"https://api.github.com/repos/wagn/wikirate/branches{/branch}","tags_url":"https://api.github.com/repos/wagn/wikirate/tags","blobs_url":"https://api.github.com/repos/wagn/wikirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wagn/wikirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wagn/wikirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/wagn/wikirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wagn/wikirate/statuses/{sha}","languages_url":"https://api.github.com/repos/wagn/wikirate/languages","stargazers_url":"https://api.github.com/repos/wagn/wikirate/stargazers","contributors_url":"https://api.github.com/repos/wagn/wikirate/contributors","subscribers_url":"https://api.github.com/repos/wagn/wikirate/subscribers","subscription_url":"https://api.github.com/repos/wagn/wikirate/subscription","commits_url":"https://api.github.com/repos/wagn/wikirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/wagn/wikirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/wagn/wikirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/wagn/wikirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/wagn/wikirate/contents/{+path}","compare_url":"https://api.github.com/repos/wagn/wikirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wagn/wikirate/merges","archive_url":"https://api.github.com/repos/wagn/wikirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wagn/wikirate/downloads","issues_url":"https://api.github.com/repos/wagn/wikirate/issues{/number}","pulls_url":"https://api.github.com/repos/wagn/wikirate/pulls{/number}","milestones_url":"https://api.github.com/repos/wagn/wikirate/milestones{/number}","notifications_url":"https://api.github.com/repos/wagn/wikirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wagn/wikirate/labels{/name}","releases_url":"https://api.github.com/repos/wagn/wikirate/releases{/id}","deployments_url":"https://api.github.com/repos/wagn/wikirate/deployments","created_at":"2014-01-13T22:29:39Z","updated_at":"2016-10-26T19:02:04Z","pushed_at":"2016-11-21T21:25:11Z","git_url":"git://github.com/wagn/wikirate.git","ssh_url":"git@github.com:wagn/wikirate.git","clone_url":"https://github.com/wagn/wikirate.git","svn_url":"https://github.com/wagn/wikirate","homepage":null,"size":107087,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/528"},"html":{"href":"https://github.com/wagn/wikirate/pull/528"},"issue":{"href":"https://api.github.com/repos/wagn/wikirate/issues/528"},"comments":{"href":"https://api.github.com/repos/wagn/wikirate/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wagn/wikirate/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/wagn/wikirate/statuses/6c5ea6d155e1973104654b0fc53a19bbcc78b1a0"}}}}
{"actor":{"display_login":"houndci-bot"}}