{"action":"created","comment":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/45548455","id":45548455,"diff_hunk":"@@ -0,0 +1,192 @@\n+/*!\n+ * jQuery Plugin: Are-You-Sure (Dirty Form Detection)\n+ * https://github.com/codedance/jquery.AreYouSure/\n+ *\n+ * Copyright (c) 2012-2014, Chris Dance and PaperCut Software http://www.papercut.com/\n+ * Dual licensed under the MIT or GPL Version 2 licenses.\n+ * http://jquery.org/license\n+ *\n+ * Author:  chris.dance@papercut.com\n+ * Version: 1.9.0\n+ * Date:    13th August 2014\n+ */\n+(function($) {\n+  \n+  $.fn.areYouSure = function(options) {\n+      \n+    var settings = $.extend(\n+      {\n+        'message' : 'You have unsaved changes!',\n+        'dirtyClass' : 'dirty',\n+        'change' : null,\n+        'silent' : false,\n+        'addRemoveFieldsMarksDirty' : false,\n+        'fieldEvents' : 'change keyup propertychange input',\n+        'fieldSelector': \":input:not(input[type=submit]):not(input[type=button])\"\n+      }, options);\n+\n+    var getValue = function($field) {\n+      if ($field.hasClass('ays-ignore')\n+          || $field.hasClass('aysIgnore')","path":"lib/assets/javascripts/jquery.are-you-sure.js","position":30,"original_position":30,"commit_id":"2820f72cb5d86ae08235c37f6de811f927241c4c","original_commit_id":"2820f72cb5d86ae08235c37f6de811f927241c4c","user":{"login":"diaspora-code-review","id":13334186,"avatar_url":"https://avatars.githubusercontent.com/u/13334186?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora-code-review","html_url":"https://github.com/diaspora-code-review","followers_url":"https://api.github.com/users/diaspora-code-review/followers","following_url":"https://api.github.com/users/diaspora-code-review/following{/other_user}","gists_url":"https://api.github.com/users/diaspora-code-review/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora-code-review/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora-code-review/subscriptions","organizations_url":"https://api.github.com/users/diaspora-code-review/orgs","repos_url":"https://api.github.com/users/diaspora-code-review/repos","events_url":"https://api.github.com/users/diaspora-code-review/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora-code-review/received_events","type":"User","site_admin":false},"body":"Strings must use doublequote.","created_at":"2015-11-21T17:25:50Z","updated_at":"2015-11-21T17:25:50Z","html_url":"https://github.com/diaspora/diaspora/pull/6556#discussion_r45548455","pull_request_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6556","_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments/45548455"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6556#discussion_r45548455"},"pull_request":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6556"}}},"pull_request":{"url":"https://api.github.com/repos/diaspora/diaspora/pulls/6556","id":51445586,"html_url":"https://github.com/diaspora/diaspora/pull/6556","diff_url":"https://github.com/diaspora/diaspora/pull/6556.diff","patch_url":"https://github.com/diaspora/diaspora/pull/6556.patch","issue_url":"https://api.github.com/repos/diaspora/diaspora/issues/6556","number":6556,"state":"open","locked":false,"title":"warn user if he leaves profile editing page with unsaved changes #6520","user":{"login":"atulonruby","id":1123985,"avatar_url":"https://avatars.githubusercontent.com/u/1123985?v=3","gravatar_id":"","url":"https://api.github.com/users/atulonruby","html_url":"https://github.com/atulonruby","followers_url":"https://api.github.com/users/atulonruby/followers","following_url":"https://api.github.com/users/atulonruby/following{/other_user}","gists_url":"https://api.github.com/users/atulonruby/gists{/gist_id}","starred_url":"https://api.github.com/users/atulonruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atulonruby/subscriptions","organizations_url":"https://api.github.com/users/atulonruby/orgs","repos_url":"https://api.github.com/users/atulonruby/repos","events_url":"https://api.github.com/users/atulonruby/events{/privacy}","received_events_url":"https://api.github.com/users/atulonruby/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-21T17:25:33Z","updated_at":"2015-11-21T17:25:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44e72d38a65714a521bff04c2ba8a9702fdae551","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6556/commits","review_comments_url":"https://api.github.com/repos/diaspora/diaspora/pulls/6556/comments","review_comment_url":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diaspora/diaspora/issues/6556/comments","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/2820f72cb5d86ae08235c37f6de811f927241c4c","head":{"label":"joshsoftware:develop","ref":"develop","sha":"2820f72cb5d86ae08235c37f6de811f927241c4c","user":{"login":"joshsoftware","id":130756,"avatar_url":"https://avatars.githubusercontent.com/u/130756?v=3","gravatar_id":"","url":"https://api.github.com/users/joshsoftware","html_url":"https://github.com/joshsoftware","followers_url":"https://api.github.com/users/joshsoftware/followers","following_url":"https://api.github.com/users/joshsoftware/following{/other_user}","gists_url":"https://api.github.com/users/joshsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/joshsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshsoftware/subscriptions","organizations_url":"https://api.github.com/users/joshsoftware/orgs","repos_url":"https://api.github.com/users/joshsoftware/repos","events_url":"https://api.github.com/users/joshsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/joshsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":42863741,"name":"diaspora","full_name":"joshsoftware/diaspora","owner":{"login":"joshsoftware","id":130756,"avatar_url":"https://avatars.githubusercontent.com/u/130756?v=3","gravatar_id":"","url":"https://api.github.com/users/joshsoftware","html_url":"https://github.com/joshsoftware","followers_url":"https://api.github.com/users/joshsoftware/followers","following_url":"https://api.github.com/users/joshsoftware/following{/other_user}","gists_url":"https://api.github.com/users/joshsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/joshsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshsoftware/subscriptions","organizations_url":"https://api.github.com/users/joshsoftware/orgs","repos_url":"https://api.github.com/users/joshsoftware/repos","events_url":"https://api.github.com/users/joshsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/joshsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joshsoftware/diaspora","description":"Distributed and contextual social networking","fork":true,"url":"https://api.github.com/repos/joshsoftware/diaspora","forks_url":"https://api.github.com/repos/joshsoftware/diaspora/forks","keys_url":"https://api.github.com/repos/joshsoftware/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshsoftware/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshsoftware/diaspora/teams","hooks_url":"https://api.github.com/repos/joshsoftware/diaspora/hooks","issue_events_url":"https://api.github.com/repos/joshsoftware/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/joshsoftware/diaspora/events","assignees_url":"https://api.github.com/repos/joshsoftware/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/joshsoftware/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/joshsoftware/diaspora/tags","blobs_url":"https://api.github.com/repos/joshsoftware/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshsoftware/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshsoftware/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshsoftware/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshsoftware/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/joshsoftware/diaspora/languages","stargazers_url":"https://api.github.com/repos/joshsoftware/diaspora/stargazers","contributors_url":"https://api.github.com/repos/joshsoftware/diaspora/contributors","subscribers_url":"https://api.github.com/repos/joshsoftware/diaspora/subscribers","subscription_url":"https://api.github.com/repos/joshsoftware/diaspora/subscription","commits_url":"https://api.github.com/repos/joshsoftware/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshsoftware/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshsoftware/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshsoftware/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshsoftware/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/joshsoftware/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshsoftware/diaspora/merges","archive_url":"https://api.github.com/repos/joshsoftware/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshsoftware/diaspora/downloads","issues_url":"https://api.github.com/repos/joshsoftware/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/joshsoftware/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/joshsoftware/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/joshsoftware/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshsoftware/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/joshsoftware/diaspora/releases{/id}","created_at":"2015-09-21T12:02:26Z","updated_at":"2015-09-21T12:02:32Z","pushed_at":"2015-11-21T17:17:34Z","git_url":"git://github.com/joshsoftware/diaspora.git","ssh_url":"git@github.com:joshsoftware/diaspora.git","clone_url":"https://github.com/joshsoftware/diaspora.git","svn_url":"https://github.com/joshsoftware/diaspora","homepage":"https://diasporafoundation.org/","size":101871,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"develop"}},"base":{"label":"diaspora:develop","ref":"develop","sha":"17d0ddab414b77cb889aa1fb1a40e416196ea51a","user":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"repo":{"id":911765,"name":"diaspora","full_name":"diaspora/diaspora","owner":{"login":"diaspora","id":293207,"avatar_url":"https://avatars.githubusercontent.com/u/293207?v=3","gravatar_id":"","url":"https://api.github.com/users/diaspora","html_url":"https://github.com/diaspora","followers_url":"https://api.github.com/users/diaspora/followers","following_url":"https://api.github.com/users/diaspora/following{/other_user}","gists_url":"https://api.github.com/users/diaspora/gists{/gist_id}","starred_url":"https://api.github.com/users/diaspora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diaspora/subscriptions","organizations_url":"https://api.github.com/users/diaspora/orgs","repos_url":"https://api.github.com/users/diaspora/repos","events_url":"https://api.github.com/users/diaspora/events{/privacy}","received_events_url":"https://api.github.com/users/diaspora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/diaspora/diaspora","description":"Distributed and contextual social networking","fork":false,"url":"https://api.github.com/repos/diaspora/diaspora","forks_url":"https://api.github.com/repos/diaspora/diaspora/forks","keys_url":"https://api.github.com/repos/diaspora/diaspora/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diaspora/diaspora/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diaspora/diaspora/teams","hooks_url":"https://api.github.com/repos/diaspora/diaspora/hooks","issue_events_url":"https://api.github.com/repos/diaspora/diaspora/issues/events{/number}","events_url":"https://api.github.com/repos/diaspora/diaspora/events","assignees_url":"https://api.github.com/repos/diaspora/diaspora/assignees{/user}","branches_url":"https://api.github.com/repos/diaspora/diaspora/branches{/branch}","tags_url":"https://api.github.com/repos/diaspora/diaspora/tags","blobs_url":"https://api.github.com/repos/diaspora/diaspora/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diaspora/diaspora/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diaspora/diaspora/git/refs{/sha}","trees_url":"https://api.github.com/repos/diaspora/diaspora/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diaspora/diaspora/statuses/{sha}","languages_url":"https://api.github.com/repos/diaspora/diaspora/languages","stargazers_url":"https://api.github.com/repos/diaspora/diaspora/stargazers","contributors_url":"https://api.github.com/repos/diaspora/diaspora/contributors","subscribers_url":"https://api.github.com/repos/diaspora/diaspora/subscribers","subscription_url":"https://api.github.com/repos/diaspora/diaspora/subscription","commits_url":"https://api.github.com/repos/diaspora/diaspora/commits{/sha}","git_commits_url":"https://api.github.com/repos/diaspora/diaspora/git/commits{/sha}","comments_url":"https://api.github.com/repos/diaspora/diaspora/comments{/number}","issue_comment_url":"https://api.github.com/repos/diaspora/diaspora/issues/comments{/number}","contents_url":"https://api.github.com/repos/diaspora/diaspora/contents/{+path}","compare_url":"https://api.github.com/repos/diaspora/diaspora/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diaspora/diaspora/merges","archive_url":"https://api.github.com/repos/diaspora/diaspora/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diaspora/diaspora/downloads","issues_url":"https://api.github.com/repos/diaspora/diaspora/issues{/number}","pulls_url":"https://api.github.com/repos/diaspora/diaspora/pulls{/number}","milestones_url":"https://api.github.com/repos/diaspora/diaspora/milestones{/number}","notifications_url":"https://api.github.com/repos/diaspora/diaspora/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diaspora/diaspora/labels{/name}","releases_url":"https://api.github.com/repos/diaspora/diaspora/releases{/id}","created_at":"2010-09-15T05:20:04Z","updated_at":"2015-11-21T16:30:18Z","pushed_at":"2015-11-21T17:25:34Z","git_url":"git://github.com/diaspora/diaspora.git","ssh_url":"git@github.com:diaspora/diaspora.git","clone_url":"https://github.com/diaspora/diaspora.git","svn_url":"https://github.com/diaspora/diaspora","homepage":"https://diasporafoundation.org/","size":231558,"stargazers_count":10375,"watchers_count":10375,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2689,"mirror_url":null,"open_issues_count":445,"forks":2689,"open_issues":445,"watchers":10375,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6556"},"html":{"href":"https://github.com/diaspora/diaspora/pull/6556"},"issue":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6556"},"comments":{"href":"https://api.github.com/repos/diaspora/diaspora/issues/6556/comments"},"review_comments":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6556/comments"},"review_comment":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diaspora/diaspora/pulls/6556/commits"},"statuses":{"href":"https://api.github.com/repos/diaspora/diaspora/statuses/2820f72cb5d86ae08235c37f6de811f927241c4c"}}}}