{"action":"created","comment":{"url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/comments/61245634","id":61245634,"diff_hunk":"@@ -0,0 +1,43 @@\n+/*eslint-env jquery*/\n+\n+$(document).ready(function(){\n+\n+\t$(\"#txtBusca\").fastLiveFilter(\"#acervo\");\n+\n+\tfunction getItems(exampleNr) {\n+\t\tvar columns = [];\n+\t\t$(exampleNr + \" ul.sortable-list\").each(function() {\n+\t\t\tvar idLista = $(this).attr(\"id\");\n+\t\t\tif (idLista !== \"acervo\") {\n+\t\t\t\tvar listaAuxTitulos = [];\n+\t\t\t\t$(\"#\"+idLista+\" .sortable-item\").each(function(){\n+\t\t\t\t\tlistaAuxTitulos.push($(this).attr(\"id\"));\n+\t\t\t\t});\n+\t\t\t\tcolumns.push(listaAuxTitulos.join(\",\"));\n+\t\t\t}\n+\t\t});\n+\t\treturn columns;\n+\t}\n+\n+\t$(\"#btn-get\").click(function() {\n+\t\tvar allItems = getItems(\"#drag-and-drop\");\n+\t\tvar data = {\n+\t\t\tbasica : allItems[0],\n+\t\t\tcomplementar : allItems[1],\n+\t\t\tidComponente : $(\"#componenteId\").val()\n+\t\t};\n+\t\t$.post(\"/\" + getAppName() + \"/componente/vincular\", data);\n+\t});\n+\n+\tif($(\"#drag-and-drop .sortable-list\").length > 0){\n+\t\tvar listaDragAndDropBasica = $(\"#drag-and-drop .sortable-list#basica\");\n+\t\tSortable.create(listaDragAndDropBasica[0], { group: \"drag_and_drop\" });","path":"aplicacoes/gal_npi/src/main/webapp/resources/js/componente-vincular.js","position":34,"original_position":34,"commit_id":"07b11f3e6fcb43604e7c47ae609be682ab75dc1b","original_commit_id":"07b11f3e6fcb43604e7c47ae609be682ab75dc1b","user":{"login":"npiuser","id":16005675,"avatar_url":"https://avatars.githubusercontent.com/u/16005675?v=3","gravatar_id":"","url":"https://api.github.com/users/npiuser","html_url":"https://github.com/npiuser","followers_url":"https://api.github.com/users/npiuser/followers","following_url":"https://api.github.com/users/npiuser/following{/other_user}","gists_url":"https://api.github.com/users/npiuser/gists{/gist_id}","starred_url":"https://api.github.com/users/npiuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npiuser/subscriptions","organizations_url":"https://api.github.com/users/npiuser/orgs","repos_url":"https://api.github.com/users/npiuser/repos","events_url":"https://api.github.com/users/npiuser/events{/privacy}","received_events_url":"https://api.github.com/users/npiuser/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [\"Sortable\" is not defined.](https://www.codacy.com/app/NPI-UFC/gal/file/2470227861/issues/source?bid=3232095&fileBranchId=3250795#l34)","created_at":"2016-04-27T12:06:03Z","updated_at":"2016-04-27T12:06:03Z","html_url":"https://github.com/npi-ufc-qxd/gal/pull/110#discussion_r61245634","pull_request_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/comments/61245634"},"html":{"href":"https://github.com/npi-ufc-qxd/gal/pull/110#discussion_r61245634"},"pull_request":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110","id":67726767,"html_url":"https://github.com/npi-ufc-qxd/gal/pull/110","diff_url":"https://github.com/npi-ufc-qxd/gal/pull/110.diff","patch_url":"https://github.com/npi-ufc-qxd/gal/pull/110.patch","issue_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/110","number":110,"state":"open","locked":false,"title":"Gal 44 refatoracao gal validacoes js","user":{"login":"AllefLobo","id":6448347,"avatar_url":"https://avatars.githubusercontent.com/u/6448347?v=3","gravatar_id":"","url":"https://api.github.com/users/AllefLobo","html_url":"https://github.com/AllefLobo","followers_url":"https://api.github.com/users/AllefLobo/followers","following_url":"https://api.github.com/users/AllefLobo/following{/other_user}","gists_url":"https://api.github.com/users/AllefLobo/gists{/gist_id}","starred_url":"https://api.github.com/users/AllefLobo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AllefLobo/subscriptions","organizations_url":"https://api.github.com/users/AllefLobo/orgs","repos_url":"https://api.github.com/users/AllefLobo/repos","events_url":"https://api.github.com/users/AllefLobo/events{/privacy}","received_events_url":"https://api.github.com/users/AllefLobo/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-25T14:15:18Z","updated_at":"2016-04-27T12:06:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"41a232a9f159088038ecae9a8a6ce0f680b0d49f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110/commits","review_comments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110/comments","review_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/110/comments","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gal/statuses/07b11f3e6fcb43604e7c47ae609be682ab75dc1b","head":{"label":"npi-ufc-qxd:GAL-44_refatoracao_gal_validacoes_js","ref":"GAL-44_refatoracao_gal_validacoes_js","sha":"07b11f3e6fcb43604e7c47ae609be682ab75dc1b","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":18556982,"name":"gal","full_name":"npi-ufc-qxd/gal","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/gal","description":"Projeto Gestão de Aquisição de Livros","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/gal","forks_url":"https://api.github.com/repos/npi-ufc-qxd/gal/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/gal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/gal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/gal/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/gal/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/gal/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/gal/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/gal/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/gal/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gal/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/gal/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/gal/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/gal/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/gal/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/gal/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/gal/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/gal/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/gal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/gal/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/gal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/gal/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/gal/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/gal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/gal/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/gal/releases{/id}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/deployments","created_at":"2014-04-08T12:15:38Z","updated_at":"2016-01-18T18:23:45Z","pushed_at":"2016-04-27T12:01:46Z","git_url":"git://github.com/npi-ufc-qxd/gal.git","ssh_url":"git@github.com:npi-ufc-qxd/gal.git","clone_url":"https://github.com/npi-ufc-qxd/gal.git","svn_url":"https://github.com/npi-ufc-qxd/gal","homepage":null,"size":92513,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"npi-ufc-qxd:master","ref":"master","sha":"be91efe49b659d2f27726f59f84ddd42774dedf6","user":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"repo":{"id":18556982,"name":"gal","full_name":"npi-ufc-qxd/gal","owner":{"login":"npi-ufc-qxd","id":6740262,"avatar_url":"https://avatars.githubusercontent.com/u/6740262?v=3","gravatar_id":"","url":"https://api.github.com/users/npi-ufc-qxd","html_url":"https://github.com/npi-ufc-qxd","followers_url":"https://api.github.com/users/npi-ufc-qxd/followers","following_url":"https://api.github.com/users/npi-ufc-qxd/following{/other_user}","gists_url":"https://api.github.com/users/npi-ufc-qxd/gists{/gist_id}","starred_url":"https://api.github.com/users/npi-ufc-qxd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npi-ufc-qxd/subscriptions","organizations_url":"https://api.github.com/users/npi-ufc-qxd/orgs","repos_url":"https://api.github.com/users/npi-ufc-qxd/repos","events_url":"https://api.github.com/users/npi-ufc-qxd/events{/privacy}","received_events_url":"https://api.github.com/users/npi-ufc-qxd/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/npi-ufc-qxd/gal","description":"Projeto Gestão de Aquisição de Livros","fork":false,"url":"https://api.github.com/repos/npi-ufc-qxd/gal","forks_url":"https://api.github.com/repos/npi-ufc-qxd/gal/forks","keys_url":"https://api.github.com/repos/npi-ufc-qxd/gal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npi-ufc-qxd/gal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npi-ufc-qxd/gal/teams","hooks_url":"https://api.github.com/repos/npi-ufc-qxd/gal/hooks","issue_events_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/events{/number}","events_url":"https://api.github.com/repos/npi-ufc-qxd/gal/events","assignees_url":"https://api.github.com/repos/npi-ufc-qxd/gal/assignees{/user}","branches_url":"https://api.github.com/repos/npi-ufc-qxd/gal/branches{/branch}","tags_url":"https://api.github.com/repos/npi-ufc-qxd/gal/tags","blobs_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/refs{/sha}","trees_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npi-ufc-qxd/gal/statuses/{sha}","languages_url":"https://api.github.com/repos/npi-ufc-qxd/gal/languages","stargazers_url":"https://api.github.com/repos/npi-ufc-qxd/gal/stargazers","contributors_url":"https://api.github.com/repos/npi-ufc-qxd/gal/contributors","subscribers_url":"https://api.github.com/repos/npi-ufc-qxd/gal/subscribers","subscription_url":"https://api.github.com/repos/npi-ufc-qxd/gal/subscription","commits_url":"https://api.github.com/repos/npi-ufc-qxd/gal/commits{/sha}","git_commits_url":"https://api.github.com/repos/npi-ufc-qxd/gal/git/commits{/sha}","comments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/comments{/number}","issue_comment_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/comments{/number}","contents_url":"https://api.github.com/repos/npi-ufc-qxd/gal/contents/{+path}","compare_url":"https://api.github.com/repos/npi-ufc-qxd/gal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npi-ufc-qxd/gal/merges","archive_url":"https://api.github.com/repos/npi-ufc-qxd/gal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npi-ufc-qxd/gal/downloads","issues_url":"https://api.github.com/repos/npi-ufc-qxd/gal/issues{/number}","pulls_url":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls{/number}","milestones_url":"https://api.github.com/repos/npi-ufc-qxd/gal/milestones{/number}","notifications_url":"https://api.github.com/repos/npi-ufc-qxd/gal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npi-ufc-qxd/gal/labels{/name}","releases_url":"https://api.github.com/repos/npi-ufc-qxd/gal/releases{/id}","deployments_url":"https://api.github.com/repos/npi-ufc-qxd/gal/deployments","created_at":"2014-04-08T12:15:38Z","updated_at":"2016-01-18T18:23:45Z","pushed_at":"2016-04-27T12:01:46Z","git_url":"git://github.com/npi-ufc-qxd/gal.git","ssh_url":"git@github.com:npi-ufc-qxd/gal.git","clone_url":"https://github.com/npi-ufc-qxd/gal.git","svn_url":"https://github.com/npi-ufc-qxd/gal","homepage":null,"size":92513,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110"},"html":{"href":"https://github.com/npi-ufc-qxd/gal/pull/110"},"issue":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/110"},"comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/npi-ufc-qxd/gal/statuses/07b11f3e6fcb43604e7c47ae609be682ab75dc1b"}}}}