{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/45586704","id":45586704,"diff_hunk":"@@ -134,8 +191,19 @@ angular.module('OpenSlidesApp.agenda.site', ['OpenSlidesApp.agenda'])\n         // delete selected item\n         $scope.delete = function () {\n             angular.forEach($scope.items, function (item) {\n-                if (item.selected)\n-                    Agenda.destroy(item.id);\n+                if (item.selected) {\n+                    switch (item.content_object.collection) {\n+                        case 'core/customslide':\n+                            Customslide.destroy(item.content_object.id);\n+                            break;\n+                        case 'motions/motion':\n+                            Motion.destroy(item.content_object.id);\n+                            break;\n+                        case 'assignments/assignment':\n+                            Assignment.destroy(item.content_object.id);\n+                            break;\n+                    }\n+                }","path":"openslides/agenda/static/js/agenda/site.js","position":null,"original_position":111,"commit_id":"5d18ab709a84180d21be32086c8813fcd5349438","original_commit_id":"5af8f3f0e472808e0a777f3443c5966dcc556f93","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":"I changed it back to `Agenda.destroy(item.id)`.\r\nBut now, this code does not allowed me to delete an agenda item (Customslide, Motion, Assignment)! I get a `403 Forbidden` for the DELETE request (e.g. `DELETE http://localhost:8000/rest/agenda/item/10/`).","created_at":"2015-11-23T10:08:27Z","updated_at":"2015-11-23T10:08:27Z","html_url":"https://github.com/OpenSlides/OpenSlides/pull/1698#discussion_r45586704","pull_request_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698","_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments/45586704"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1698#discussion_r45586704"},"pull_request":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698","id":51475584,"html_url":"https://github.com/OpenSlides/OpenSlides/pull/1698","diff_url":"https://github.com/OpenSlides/OpenSlides/pull/1698.diff","patch_url":"https://github.com/OpenSlides/OpenSlides/pull/1698.patch","issue_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1698","number":1698,"state":"open","locked":false,"title":"Improvements for related agenda items","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":"- Added QuickEdit mode for related agenda items\r\n- support hidden items\r\n- Added ng-dialog for modal create/update dialogs of customslides\r\n- use generic links for list of speakers, edit, delete\r\n\r\nSome template style issues are still open. I'll fix it with my next pull request which brings up a new base template. So please merge this asap. Thanks!","created_at":"2015-11-22T21:43:50Z","updated_at":"2015-11-23T10:08:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a3435f0b271706886a0ce484800964953f328be","assignee":{"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},"milestone":{"url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/22","html_url":"https://github.com/OpenSlides/OpenSlides/milestones/2.0b1","labels_url":"https://api.github.com/repos/OpenSlides/OpenSlides/milestones/22/labels","id":1397455,"number":22,"title":"2.0b1","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":13,"closed_issues":27,"state":"open","created_at":"2015-11-06T10:52:08Z","updated_at":"2015-11-23T09:35:26Z","due_on":"2015-11-29T23:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698/commits","review_comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698/comments","review_comment_url":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1698/comments","statuses_url":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/5d18ab709a84180d21be32086c8813fcd5349438","head":{"label":"emanuelschuetze:agenda-templates","ref":"agenda-templates","sha":"5d18ab709a84180d21be32086c8813fcd5349438","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}","created_at":"2012-08-01T05:33:01Z","updated_at":"2015-11-03T18:57:53Z","pushed_at":"2015-11-23T10:05:12Z","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":36008,"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":"c6d97013698fb809b5cea86105fbb82e9dc00a03","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}","created_at":"2012-07-31T20:04:39Z","updated_at":"2015-10-27T21:13:48Z","pushed_at":"2015-11-23T10:05:13Z","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":36791,"stargazers_count":69,"watchers_count":69,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":105,"forks":32,"open_issues":105,"watchers":69,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698"},"html":{"href":"https://github.com/OpenSlides/OpenSlides/pull/1698"},"issue":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1698"},"comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/issues/1698/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/pulls/1698/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSlides/OpenSlides/statuses/5d18ab709a84180d21be32086c8813fcd5349438"}}}}