{"action":"created","comment":{"url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/comments/70461188","id":70461188,"diff_hunk":"@@ -0,0 +1,39 @@\n+/**\n+ * @package         Joomla.JavaScript\n+ * @copyright       Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.\n+ * @license         GNU General Public License version 2 or later; see LICENSE.txt\n+ */\n+\n+/**\n+ * Calls the sending process of the config class\n+ */\n+jQuery(document).ready(function ($)\n+{\n+    $('#sharebutton').click(function ()\n+    {\n+        var share_draft = {\n+            articleId  : $('jform_id').val(),\n+            title: $('jform_title').val(),","path":"media/system/js/share-uncompressed.js","position":16,"original_position":16,"commit_id":"d15e928f90c56aead26ba5b84d786fd4e9267d9d","original_commit_id":"d15e928f90c56aead26ba5b84d786fd4e9267d9d","user":{"login":"yvesh","id":897638,"avatar_url":"https://avatars.githubusercontent.com/u/897638?v=3","gravatar_id":"","url":"https://api.github.com/users/yvesh","html_url":"https://github.com/yvesh","followers_url":"https://api.github.com/users/yvesh/followers","following_url":"https://api.github.com/users/yvesh/following{/other_user}","gists_url":"https://api.github.com/users/yvesh/gists{/gist_id}","starred_url":"https://api.github.com/users/yvesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvesh/subscriptions","organizations_url":"https://api.github.com/users/yvesh/orgs","repos_url":"https://api.github.com/users/yvesh/repos","events_url":"https://api.github.com/users/yvesh/events{/privacy}","received_events_url":"https://api.github.com/users/yvesh/received_events","type":"User","site_admin":false},"body":"As you are using jQuery you forgot to use the Hash (#) here, e.g. $('#jform_id')\r\n\r\nBtw.: When you want to use $, you need to make jQuery is used, either with $ = jQuery or surrounding your whole document ready function with:\r\n\r\n(function($){\r\n  $(document).ready...\r\n ...\r\n // End of your code\r\n})(jQuery);\r\n\r\nI would suggest using the last one here.","created_at":"2016-07-12T15:23:45Z","updated_at":"2016-07-12T15:23:45Z","html_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15#discussion_r70461188","pull_request_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/comments/70461188"},"html":{"href":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15#discussion_r70461188"},"pull_request":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15","id":76465960,"html_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15","diff_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15.diff","patch_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15.patch","issue_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/15","number":15,"state":"open","locked":false,"title":"ajax call for the button","user":{"login":"nikitadhiman","id":8037750,"avatar_url":"https://avatars.githubusercontent.com/u/8037750?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitadhiman","html_url":"https://github.com/nikitadhiman","followers_url":"https://api.github.com/users/nikitadhiman/followers","following_url":"https://api.github.com/users/nikitadhiman/following{/other_user}","gists_url":"https://api.github.com/users/nikitadhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitadhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitadhiman/subscriptions","organizations_url":"https://api.github.com/users/nikitadhiman/orgs","repos_url":"https://api.github.com/users/nikitadhiman/repos","events_url":"https://api.github.com/users/nikitadhiman/events{/privacy}","received_events_url":"https://api.github.com/users/nikitadhiman/received_events","type":"User","site_admin":false},"body":"This PR contains commits related to Ajax call for the button. Still updating\r\n1. Created the share-uncompressed.js file in media/system/js\r\n2. Added button with the related script declaration.\r\n\r\n\r\n\r\n\r\nStill updating \r\n\r\n","created_at":"2016-07-06T16:58:37Z","updated_at":"2016-07-12T15:23:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7863a44c3f21827a0806bf18b8fdd9b12136f4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15/commits","review_comments_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15/comments","review_comment_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/15/comments","statuses_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/statuses/d15e928f90c56aead26ba5b84d786fd4e9267d9d","head":{"label":"nikitadhiman:ajax_call_button","ref":"ajax_call_button","sha":"d15e928f90c56aead26ba5b84d786fd4e9267d9d","user":{"login":"nikitadhiman","id":8037750,"avatar_url":"https://avatars.githubusercontent.com/u/8037750?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitadhiman","html_url":"https://github.com/nikitadhiman","followers_url":"https://api.github.com/users/nikitadhiman/followers","following_url":"https://api.github.com/users/nikitadhiman/following{/other_user}","gists_url":"https://api.github.com/users/nikitadhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitadhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitadhiman/subscriptions","organizations_url":"https://api.github.com/users/nikitadhiman/orgs","repos_url":"https://api.github.com/users/nikitadhiman/repos","events_url":"https://api.github.com/users/nikitadhiman/events{/privacy}","received_events_url":"https://api.github.com/users/nikitadhiman/received_events","type":"User","site_admin":false},"repo":{"id":57886052,"name":"gsoc16_shareable-draft-content","full_name":"nikitadhiman/gsoc16_shareable-draft-content","owner":{"login":"nikitadhiman","id":8037750,"avatar_url":"https://avatars.githubusercontent.com/u/8037750?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitadhiman","html_url":"https://github.com/nikitadhiman","followers_url":"https://api.github.com/users/nikitadhiman/followers","following_url":"https://api.github.com/users/nikitadhiman/following{/other_user}","gists_url":"https://api.github.com/users/nikitadhiman/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitadhiman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitadhiman/subscriptions","organizations_url":"https://api.github.com/users/nikitadhiman/orgs","repos_url":"https://api.github.com/users/nikitadhiman/repos","events_url":"https://api.github.com/users/nikitadhiman/events{/privacy}","received_events_url":"https://api.github.com/users/nikitadhiman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nikitadhiman/gsoc16_shareable-draft-content","description":"Shareable Draft Content","fork":true,"url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content","forks_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/forks","keys_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/teams","hooks_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/hooks","issue_events_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/issues/events{/number}","events_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/events","assignees_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/assignees{/user}","branches_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/branches{/branch}","tags_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/tags","blobs_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/statuses/{sha}","languages_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/languages","stargazers_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/stargazers","contributors_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/contributors","subscribers_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/subscribers","subscription_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/subscription","commits_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/contents/{+path}","compare_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/merges","archive_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/downloads","issues_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/issues{/number}","pulls_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/pulls{/number}","milestones_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/milestones{/number}","notifications_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/labels{/name}","releases_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/releases{/id}","deployments_url":"https://api.github.com/repos/nikitadhiman/gsoc16_shareable-draft-content/deployments","created_at":"2016-05-02T11:37:53Z","updated_at":"2016-05-02T11:38:20Z","pushed_at":"2016-07-12T15:14:40Z","git_url":"git://github.com/nikitadhiman/gsoc16_shareable-draft-content.git","ssh_url":"git@github.com:nikitadhiman/gsoc16_shareable-draft-content.git","clone_url":"https://github.com/nikitadhiman/gsoc16_shareable-draft-content.git","svn_url":"https://github.com/nikitadhiman/gsoc16_shareable-draft-content","homepage":"https://summerofcode.withgoogle.com/projects/#5268339920207872","size":132563,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"staging"}},"base":{"label":"joomla-projects:staging","ref":"staging","sha":"bb1010ae038f6cbaf4aa78760b394bb13b6339ad","user":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":57291043,"name":"gsoc16_shareable-draft-content","full_name":"joomla-projects/gsoc16_shareable-draft-content","owner":{"login":"joomla-projects","id":4417437,"avatar_url":"https://avatars.githubusercontent.com/u/4417437?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-projects","html_url":"https://github.com/joomla-projects","followers_url":"https://api.github.com/users/joomla-projects/followers","following_url":"https://api.github.com/users/joomla-projects/following{/other_user}","gists_url":"https://api.github.com/users/joomla-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-projects/subscriptions","organizations_url":"https://api.github.com/users/joomla-projects/orgs","repos_url":"https://api.github.com/users/joomla-projects/repos","events_url":"https://api.github.com/users/joomla-projects/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content","description":"Shareable Draft Content","fork":false,"url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content","forks_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/forks","keys_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/teams","hooks_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/hooks","issue_events_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/events","assignees_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/tags","blobs_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/languages","stargazers_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/stargazers","contributors_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/contributors","subscribers_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/subscribers","subscription_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/subscription","commits_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/merges","archive_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/downloads","issues_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/labels{/name}","releases_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/releases{/id}","deployments_url":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/deployments","created_at":"2016-04-28T10:00:44Z","updated_at":"2016-06-28T09:23:10Z","pushed_at":"2016-07-12T15:14:40Z","git_url":"git://github.com/joomla-projects/gsoc16_shareable-draft-content.git","ssh_url":"git@github.com:joomla-projects/gsoc16_shareable-draft-content.git","clone_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content.git","svn_url":"https://github.com/joomla-projects/gsoc16_shareable-draft-content","homepage":"https://summerofcode.withgoogle.com/projects/#5268339920207872","size":132595,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":13,"forks":1,"open_issues":13,"watchers":4,"default_branch":"staging"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15"},"html":{"href":"https://github.com/joomla-projects/gsoc16_shareable-draft-content/pull/15"},"issue":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/15"},"comments":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/joomla-projects/gsoc16_shareable-draft-content/statuses/d15e928f90c56aead26ba5b84d786fd4e9267d9d"}}}}
{"actor":{"display_login":"yvesh"}}