{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/52850620","id":52850620,"diff_hunk":"@@ -183,6 +191,25 @@ angular.module('OpenSlidesApp.assignments', [])\n                 // subtitle of search result\n                 getSearchResultSubtitle: function () {\n                     return \"Election\";\n+                },\n+                // override project function of jsDataModel factory\n+                project: function (poll_id) {\n+                    return $http.post(\n+                        '/rest/core/projector/1/prune_elements/',\n+                        [{name: 'assignments/assignment', id: this.id, poll: poll_id}]\n+                    );\n+                },\n+                // override isProjected function of jsDataModel factory\n+                isProjected: function (poll_id) {\n+                    // Returns true if there is a projector element with the name\n+                    // 'assignments/assignment'.\n+                    var projector = Projector.get(1);\n+                    if (typeof projector === 'undefined') return false;","path":"openslides/assignments/static/js/assignments/base.js","position":55,"original_position":55,"commit_id":"ab9a54a99cbb9c827a27cc7989881cdb24745e00","original_commit_id":"ab9a54a99cbb9c827a27cc7989881cdb24745e00","user":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"body":"Please do not call a return inside a function. Use an if-else-clause for example.","created_at":"2016-02-14T23:01:47Z","updated_at":"2016-02-14T23:01:47Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1964#discussion_r52850620","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/52850620"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1964#discussion_r52850620"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964","id":58772787,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1964","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1964.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1964.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1964","number":1964,"state":"open","locked":false,"title":"Assignmentpoll slide","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-09T16:35:03Z","updated_at":"2016-02-14T23:01:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fde420e1dc268c8bdafab4b0a30c39dc726e4148","assignee":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.0","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/17/labels","id":720870,"number":17,"title":"2.0","description":"","creator":{"login":"normanjaeckel","id":2073844,"avatar_url":"https://avatars.githubusercontent.com/u/2073844?v=3","gravatar_id":"","url":"https://api.github.com/users/normanjaeckel","html_url":"https://github.com/normanjaeckel","followers_url":"https://api.github.com/users/normanjaeckel/followers","following_url":"https://api.github.com/users/normanjaeckel/following{/other_user}","gists_url":"https://api.github.com/users/normanjaeckel/gists{/gist_id}","starred_url":"https://api.github.com/users/normanjaeckel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/normanjaeckel/subscriptions","organizations_url":"https://api.github.com/users/normanjaeckel/orgs","repos_url":"https://api.github.com/users/normanjaeckel/repos","events_url":"https://api.github.com/users/normanjaeckel/events{/privacy}","received_events_url":"https://api.github.com/users/normanjaeckel/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":300,"state":"open","created_at":"2014-07-14T20:36:14Z","updated_at":"2016-02-14T22:01:04Z","due_on":"2016-02-28T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1964/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/ab9a54a99cbb9c827a27cc7989881cdb24745e00","head":{"label":"emanuelschuetze:assignmentpoll","ref":"assignmentpoll","sha":"ab9a54a99cbb9c827a27cc7989881cdb24745e00","user":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"repo":{"id":5255375,"name":"OpenSlides","full_name":"emanuelschuetze/OpenSlides","owner":{"login":"emanuelschuetze","id":2075427,"avatar_url":"https://avatars.githubusercontent.com/u/2075427?v=3","gravatar_id":"","url":"https://api.github.com/users/emanuelschuetze","html_url":"https://github.com/emanuelschuetze","followers_url":"https://api.github.com/users/emanuelschuetze/followers","following_url":"https://api.github.com/users/emanuelschuetze/following{/other_user}","gists_url":"https://api.github.com/users/emanuelschuetze/gists{/gist_id}","starred_url":"https://api.github.com/users/emanuelschuetze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emanuelschuetze/subscriptions","organizations_url":"https://api.github.com/users/emanuelschuetze/orgs","repos_url":"https://api.github.com/users/emanuelschuetze/repos","events_url":"https://api.github.com/users/emanuelschuetze/events{/privacy}","received_events_url":"https://api.github.com/users/emanuelschuetze/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/emanuelschuetze/OpenSlides","description":"","fork":true,"url":"https://api.github.com/repos/emanuelschuetze/OpenSlides","forks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/forks","keys_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/teams","hooks_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/events","assignees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/tags","blobs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/subscription","commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/merges","archive_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/downloads","issues_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/releases{/id}","deployments_url":"https://api.github.com/repos/emanuelschuetze/OpenSlides/deployments","created_at":"2012-08-01T05:33:01Z","updated_at":"2015-11-03T18:57:53Z","pushed_at":"2016-02-14T22:55:52Z","git_url":"git://github.com/emanuelschuetze/OpenSlides.git","ssh_url":"git@github.com:emanuelschuetze/OpenSlides.git","clone_url":"https://github.com/emanuelschuetze/OpenSlides.git","svn_url":"https://github.com/emanuelschuetze/OpenSlides","homepage":null,"size":36979,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"OpenSlides:master","ref":"master","sha":"8436963dcec979afada8265a0f40f699f32d55a8","user":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"repo":{"id":5250779,"name":"OpenSlides","full_name":"OpenSlides/OpenSlides","owner":{"login":"OpenSlides","id":2055730,"avatar_url":"https://avatars.githubusercontent.com/u/2055730?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenSlides","html_url":"https://github.com/OpenSlides","followers_url":"https://api.github.com/users/OpenSlides/followers","following_url":"https://api.github.com/users/OpenSlides/following{/other_user}","gists_url":"https://api.github.com/users/OpenSlides/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSlides/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSlides/subscriptions","organizations_url":"https://api.github.com/users/OpenSlides/orgs","repos_url":"https://api.github.com/users/OpenSlides/repos","events_url":"https://api.github.com/users/OpenSlides/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSlides/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenSlides/OpenSlides","description":"Presentation and assembly system","fork":false,"url":"https://api.github.com/repos/OpenSlides/OpenSlides","forks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/forks","keys_url":"https://api.github.com/repos/OpenSlides/OpenSlides/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSlides/OpenSlides/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSlides/OpenSlides/teams","hooks_url":"https://api.github.com/repos/OpenSlides/OpenSlides/hooks","issue_events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSlides/OpenSlides/events","assignees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSlides/OpenSlides/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/tags","blobs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSlides/OpenSlides/languages","stargazers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/stargazers","contributors_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contributors","subscribers_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscribers","subscription_url":"https://api.github.com/repos/OpenSlides/OpenSlides/subscription","commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSlides/OpenSlides/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSlides/OpenSlides/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSlides/OpenSlides/merges","archive_url":"https://api.github.com/repos/OpenSlides/OpenSlides/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSlides/OpenSlides/downloads","issues_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSlides/OpenSlides/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/labels{/name}","releases_url":"https://api.github.com/repos/OpenSlides/OpenSlides/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/deployments","created_at":"2012-07-31T20:04:39Z","updated_at":"2016-02-11T14:46:08Z","pushed_at":"2016-02-14T22:55:52Z","git_url":"git://github.com/OpenSlides/OpenSlides.git","ssh_url":"git@github.com:OpenSlides/OpenSlides.git","clone_url":"https://github.com/OpenSlides/OpenSlides.git","svn_url":"https://github.com/OpenSlides/OpenSlides","homepage":"http://openslides.org","size":37794,"stargazers_count":73,"watchers_count":73,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":80,"forks":31,"open_issues":80,"watchers":73,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1964"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1964"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1964/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1964/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/ab9a54a99cbb9c827a27cc7989881cdb24745e00"}}}}