{"action":"created","comment":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/43254432","id":43254432,"diff_hunk":"@@ -0,0 +1,128 @@\n+(function ($) {\n+    $.fn.thumbPopup = function (options) {\n+        //Combine the passed in options with the default settings\n+        settings = jQuery.extend({\n+            popupId: \"thumbPopup\",\n+            popupCSS: { 'border': '1px solid #000000', 'background': '#FFFFFF' },\n+            imgSmallFlag: \"_t\",\n+            imgLargeFlag: \"_l\",\n+            cursorTopOffset: 15,\n+            cursorLeftOffset: 15,\n+            loadingHtml: \"\"\n+        }, options);\n+        //<span style='padding: 5px;'>Loading</span>\n+        //Create our popup element\n+        popup =\n+\t\t$(\"<div />\")\n+\t\t.css(settings.popupCSS)\n+\t\t.attr(\"id\", settings.popupId)\n+\t\t.css({ \"position\": \"absolute\", \"z-index\": \"999\" })\n+\t\t.appendTo(\"body\").hide();\n+\n+        //Attach hover events that manage the popup     .hover .mouseover(updatePopupPosition)\n+        $(this)\n+        .hover(setPopup)\n+\t\t.mousemove(updatePopupPosition)\n+\t\t.mouseout(hidePopup);\n+\n+        function setPopup(event) {\n+            var fullImgURL = $(this).attr(\"src\").replace(settings.imgSmallFlag, settings.imgLargeFlag);\n+\n+            $(this).data(\"hovered\", true);\n+            var pagey = 480;\n+            if ((event.pageY - 15) < 480)\n+                pagey = event.pageY - 15;\n+            //Load full image in popup\n+            $(\"<img />\")\n+\t\t\t.bind(\"load\", { thumbImage: this }, function (event) {\n+\t\t\t    //Only display the larger image if the thumbnail is still being hovered\n+\t\t\t    if ($(event.data.thumbImage).data(\"hovered\") == true) {\n+\t\t\t        $(popup).empty().append(this);\n+\t\t\t        //updatePopupPosition(event);\n+\t\t\t        $(popup).show();\n+\t\t\t    }\n+\t\t\t    $(event.data.thumbImage).data(\"cached\", true);\n+\t\t\t})\n+\t\t\t.height(213) //pagey\n+            .width(284)\n+\t\t\t.attr(\"src\", fullImgURL);\n+\n+            //If no image has been loaded yet then place a loading message\n+            if ($(this).data(\"cached\") != true) {\n+                $(popup).append($(settings.loadingHtml));","path":"lib/assets/javascripts/jquery.thumbhover.js","position":52,"original_position":52,"commit_id":"3698d49546fa8c4635a789d50bab518e5b17cff0","original_commit_id":"3698d49546fa8c4635a789d50bab518e5b17cff0","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'popup' is not defined.<br>'settings' is not defined.","created_at":"2015-10-28T13:29:34Z","updated_at":"2015-10-28T13:29:34Z","html_url":"https://github.com/evercam/evercam-dashboard/pull/752#discussion_r43254432","pull_request_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752","_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments/43254432"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/752#discussion_r43254432"},"pull_request":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752"}}},"pull_request":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752","id":49005293,"html_url":"https://github.com/evercam/evercam-dashboard/pull/752","diff_url":"https://github.com/evercam/evercam-dashboard/pull/752.diff","patch_url":"https://github.com/evercam/evercam-dashboard/pull/752.patch","issue_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/752","number":752,"state":"open","locked":false,"title":"Md stripe","user":{"login":"azharmalik3","id":6176136,"avatar_url":"https://avatars.githubusercontent.com/u/6176136?v=3","gravatar_id":"","url":"https://api.github.com/users/azharmalik3","html_url":"https://github.com/azharmalik3","followers_url":"https://api.github.com/users/azharmalik3/followers","following_url":"https://api.github.com/users/azharmalik3/following{/other_user}","gists_url":"https://api.github.com/users/azharmalik3/gists{/gist_id}","starred_url":"https://api.github.com/users/azharmalik3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azharmalik3/subscriptions","organizations_url":"https://api.github.com/users/azharmalik3/orgs","repos_url":"https://api.github.com/users/azharmalik3/repos","events_url":"https://api.github.com/users/azharmalik3/events{/privacy}","received_events_url":"https://api.github.com/users/azharmalik3/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-28T13:29:20Z","updated_at":"2015-10-28T13:29:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c28b318d466df48151422037ed8e8c805f083fc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752/commits","review_comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752/comments","review_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/752/comments","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/3698d49546fa8c4635a789d50bab518e5b17cff0","head":{"label":"evercam:md_stripe","ref":"md_stripe","sha":"3698d49546fa8c4635a789d50bab518e5b17cff0","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-10-13T07:37:18Z","pushed_at":"2015-10-28T13:29:22Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":319170,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":49,"forks":2,"open_issues":49,"watchers":10,"default_branch":"master"}},"base":{"label":"evercam:master","ref":"master","sha":"c4b67d30b94e85685216cc1d9ee46849243c9d12","user":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"repo":{"id":17252115,"name":"evercam-dashboard","full_name":"evercam/evercam-dashboard","owner":{"login":"evercam","id":5575404,"avatar_url":"https://avatars.githubusercontent.com/u/5575404?v=3","gravatar_id":"","url":"https://api.github.com/users/evercam","html_url":"https://github.com/evercam","followers_url":"https://api.github.com/users/evercam/followers","following_url":"https://api.github.com/users/evercam/following{/other_user}","gists_url":"https://api.github.com/users/evercam/gists{/gist_id}","starred_url":"https://api.github.com/users/evercam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evercam/subscriptions","organizations_url":"https://api.github.com/users/evercam/orgs","repos_url":"https://api.github.com/users/evercam/repos","events_url":"https://api.github.com/users/evercam/events{/privacy}","received_events_url":"https://api.github.com/users/evercam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evercam/evercam-dashboard","description":"A Rails application that provides the user facing side of Evercam.","fork":false,"url":"https://api.github.com/repos/evercam/evercam-dashboard","forks_url":"https://api.github.com/repos/evercam/evercam-dashboard/forks","keys_url":"https://api.github.com/repos/evercam/evercam-dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evercam/evercam-dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evercam/evercam-dashboard/teams","hooks_url":"https://api.github.com/repos/evercam/evercam-dashboard/hooks","issue_events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/events","assignees_url":"https://api.github.com/repos/evercam/evercam-dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/evercam/evercam-dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/tags","blobs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/evercam/evercam-dashboard/languages","stargazers_url":"https://api.github.com/repos/evercam/evercam-dashboard/stargazers","contributors_url":"https://api.github.com/repos/evercam/evercam-dashboard/contributors","subscribers_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscribers","subscription_url":"https://api.github.com/repos/evercam/evercam-dashboard/subscription","commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/evercam/evercam-dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/evercam/evercam-dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/evercam/evercam-dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evercam/evercam-dashboard/merges","archive_url":"https://api.github.com/repos/evercam/evercam-dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evercam/evercam-dashboard/downloads","issues_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/evercam/evercam-dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/evercam/evercam-dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/evercam/evercam-dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/labels{/name}","releases_url":"https://api.github.com/repos/evercam/evercam-dashboard/releases{/id}","created_at":"2014-02-27T14:46:47Z","updated_at":"2015-10-13T07:37:18Z","pushed_at":"2015-10-28T13:29:22Z","git_url":"git://github.com/evercam/evercam-dashboard.git","ssh_url":"git@github.com:evercam/evercam-dashboard.git","clone_url":"https://github.com/evercam/evercam-dashboard.git","svn_url":"https://github.com/evercam/evercam-dashboard","homepage":null,"size":319170,"stargazers_count":10,"watchers_count":10,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":49,"forks":2,"open_issues":49,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752"},"html":{"href":"https://github.com/evercam/evercam-dashboard/pull/752"},"issue":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/752"},"comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/issues/752/comments"},"review_comments":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752/comments"},"review_comment":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/pulls/752/commits"},"statuses":{"href":"https://api.github.com/repos/evercam/evercam-dashboard/statuses/3698d49546fa8c4635a789d50bab518e5b17cff0"}}}}