{"action":"created","comment":{"url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/comments/34668230","id":34668230,"diff_hunk":"@@ -0,0 +1,139 @@\n+/*\n+ * This file is part of the Sulu CMS.\n+ *\n+ * (c) MASSIVE ART WebServices GmbH\n+ *\n+ * This source file is subject to the MIT license that is bundled\n+ * with this source code in the file LICENSE.\n+ */\n+\n+define(function () {\n+\n+    'use strict';\n+\n+    var constants = {\n+        toolbarSelector: '#list-toolbar-container',\n+        listSelector: '#events-list',\n+        lastClickedEventSettingsKey: 'eventsLastClicked'\n+    };\n+\n+    return {\n+\n+        view: true,\n+\n+        layout: {\n+            content: {\n+                width: 'max',\n+                leftSpace: false,\n+                rightSpace: false\n+            }\n+        },\n+\n+        header: function () {\n+            return {\n+                title: 'globals.events.title',\n+                noBack: true,\n+\n+                breadcrumb: [\n+                    { title: 'navigation.global-content' },\n+                    { title: 'globals.events.title' }\n+                ]\n+            };\n+        },\n+\n+        templates: ['/admin/event/template/event/list'],\n+\n+        initialize: function () {\n+            this.sandbox.sulu.triggerDeleteSuccessLabel('labels.success.event-delete-desc');\n+            this.bindCustomEvents();\n+            this.render();\n+        },\n+\n+        bindCustomEvents: function () {\n+            this.sandbox.on('sulu.list-toolbar.add', this.addNewEvent.bind(this));\n+            this.sandbox.on('sulu.list-toolbar.delete', this.deleteSelected.bind(this));\n+            this.sandbox.on('husky.datagrid.item.click', this.saveLastClickedEvent.bind(this));\n+        },\n+\n+        /**\n+         * Renders the component\n+         */\n+        render: function () {\n+            this.sandbox.dom.html(this.$el, this.renderTemplate('/admin/event/template/event/list'));\n+\n+            // init list-toolbar and datagrid\n+            this.sandbox.sulu.initListToolbarAndList.call(this, 'events', '/admin/api/events/fields',\n+                {\n+                    // options for the header (list-toolbar)\n+                    el: this.$find(constants.toolbarSelector),\n+                    template: 'default',\n+                    instanceName: this.instanceName,\n+                    inHeader: true\n+                },\n+                {\n+                    // options for the content (datagrid)\n+                    el: this.$find(constants.listSelector),\n+                    url: '/admin/api/events?language=' + this.options.language,\n+                    resultKey: 'events',\n+                    searchFields: ['title'],\n+                    pagination: false,\n+                    viewOptions: {\n+                        table: {\n+                            icons: [\n+                                {\n+                                    column: 'id',\n+                                    icon: 'pencil',\n+                                    align: 'left',\n+                                    callback: this.editEvent.bind(this)\n+                                }\n+                            ],\n+                            highlightSelected: true,\n+                            fullWidth: true\n+                        }\n+                    }\n+                }\n+            );\n+        },\n+\n+        /**\n+         * Navigates to the the form for adding a new event\n+         * @param parent\n+         */\n+        addNewEvent: function (parent) {\n+            this.saveLastClickedEvent(parent);\n+            this.sandbox.emit('massive.event.events.form-add', parent);","path":"Resources/public/js/components/events/list/main.js","position":104,"original_position":104,"commit_id":"4f4e2650c0f6ecd02a66ba990923c546a8031c46","original_commit_id":"4f4e2650c0f6ecd02a66ba990923c546a8031c46","user":{"login":"alexander-schranz","id":1698337,"avatar_url":"https://avatars.githubusercontent.com/u/1698337?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander-schranz","html_url":"https://github.com/alexander-schranz","followers_url":"https://api.github.com/users/alexander-schranz/followers","following_url":"https://api.github.com/users/alexander-schranz/following{/other_user}","gists_url":"https://api.github.com/users/alexander-schranz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander-schranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander-schranz/subscriptions","organizations_url":"https://api.github.com/users/alexander-schranz/orgs","repos_url":"https://api.github.com/users/alexander-schranz/repos","events_url":"https://api.github.com/users/alexander-schranz/events{/privacy}","received_events_url":"https://api.github.com/users/alexander-schranz/received_events","type":"User","site_admin":false},"body":"would prefer to create a variable for `'massive.event.events.'`","created_at":"2015-07-15T11:13:55Z","updated_at":"2015-07-15T11:13:55Z","html_url":"https://github.com/massiveart/MassiveEventBundle/pull/1#discussion_r34668230","pull_request_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/comments/34668230"},"html":{"href":"https://github.com/massiveart/MassiveEventBundle/pull/1#discussion_r34668230"},"pull_request":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1","id":39382206,"html_url":"https://github.com/massiveart/MassiveEventBundle/pull/1","diff_url":"https://github.com/massiveart/MassiveEventBundle/pull/1.diff","patch_url":"https://github.com/massiveart/MassiveEventBundle/pull/1.patch","issue_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/1","number":1,"state":"open","locked":false,"title":"[WIP] Basic set up of EventBundle","user":{"login":"thomasduenser","id":3875917,"avatar_url":"https://avatars.githubusercontent.com/u/3875917?v=3","gravatar_id":"","url":"https://api.github.com/users/thomasduenser","html_url":"https://github.com/thomasduenser","followers_url":"https://api.github.com/users/thomasduenser/followers","following_url":"https://api.github.com/users/thomasduenser/following{/other_user}","gists_url":"https://api.github.com/users/thomasduenser/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasduenser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasduenser/subscriptions","organizations_url":"https://api.github.com/users/thomasduenser/orgs","repos_url":"https://api.github.com/users/thomasduenser/repos","events_url":"https://api.github.com/users/thomasduenser/events{/privacy}","received_events_url":"https://api.github.com/users/thomasduenser/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T15:22:08Z","updated_at":"2015-07-15T11:13:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d77294b76a6a900bfeab7b21b9d98a7f5f9bfcd1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1/commits","review_comments_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1/comments","review_comment_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/1/comments","statuses_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/statuses/4f4e2650c0f6ecd02a66ba990923c546a8031c46","head":{"label":"massiveart:feature/continuation","ref":"feature/continuation","sha":"4f4e2650c0f6ecd02a66ba990923c546a8031c46","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":37308811,"name":"MassiveEventBundle","full_name":"massiveart/MassiveEventBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveEventBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveEventBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/releases{/id}","created_at":"2015-06-12T07:38:09Z","updated_at":"2015-07-06T13:05:35Z","pushed_at":"2015-07-15T07:55:48Z","git_url":"git://github.com/massiveart/MassiveEventBundle.git","ssh_url":"git@github.com:massiveart/MassiveEventBundle.git","clone_url":"https://github.com/massiveart/MassiveEventBundle.git","svn_url":"https://github.com/massiveart/MassiveEventBundle","homepage":null,"size":260,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"massiveart:develop","ref":"develop","sha":"74ad9106eb4de27d6eeae6b6ca9811d814f0cf04","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":37308811,"name":"MassiveEventBundle","full_name":"massiveart/MassiveEventBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveEventBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveEventBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/comments{/number}","contents_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveEventBundle/releases{/id}","created_at":"2015-06-12T07:38:09Z","updated_at":"2015-07-06T13:05:35Z","pushed_at":"2015-07-15T07:55:48Z","git_url":"git://github.com/massiveart/MassiveEventBundle.git","ssh_url":"git@github.com:massiveart/MassiveEventBundle.git","clone_url":"https://github.com/massiveart/MassiveEventBundle.git","svn_url":"https://github.com/massiveart/MassiveEventBundle","homepage":null,"size":260,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1"},"html":{"href":"https://github.com/massiveart/MassiveEventBundle/pull/1"},"issue":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/1"},"comments":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/massiveart/MassiveEventBundle/statuses/4f4e2650c0f6ecd02a66ba990923c546a8031c46"}}}}