{"action":"created","comment":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/22998934","id":22998934,"diff_hunk":"@@ -0,0 +1,236 @@\n+/*\n+ * Copyright (c) 2011-2013 Lp digital system\n+ *\n+ * This file is part of BackBuilder5.\n+ *\n+ * BackBuilder5 is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * BackBuilder5 is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with BackBuilder5. If not, see <http://www.gnu.org/licenses/>.\n+ */\n+\n+define(\n+    [\n+        'jquery',\n+        'text!content/tpl/contribution/index',\n+        'text!content/tpl/carousel_blocks',\n+        'tb.core.Renderer',\n+        'text!content/tpl/palette_blocks'\n+    ],\n+    function (jQuery,\n+              template,\n+              carouselBlocksTpl,\n+              Renderer,\n+              paletteBlocksTpl\n+            ) {\n+\n+        'use strict';\n+\n+        /**\n+         * View of content contribution index\n+         * @type {Object} Backbone.View\n+         */\n+        var ContentViewContributionIndex = Backbone.View.extend({\n+\n+            /**\n+             * Point of Toolbar in DOM\n+             */\n+            el: '#contrib-tab-apps',\n+            carouselBlocksId: '#carousel-contrib-blocks',\n+            carouselId: '#carousel-blocks',\n+            selectCategoriesId: '#select-categories-blocks-contrib',\n+            paletteBlocksId: '#palette-contrib-blocks',\n+            dialogContainerClass: '.bb5-dialog-container',\n+            paletteBlocksDalogId: '#palette-blocks',\n+            togglePaletteClasses: '.bb5-data-toggle .bb5-data-toggle-header',\n+\n+            /**\n+             * Initialize of ContentViewContributionIndex\n+             */\n+            initialize: function (config) {\n+                this.categories = this.manageCategories(config.categories);\n+\n+                this.bindUiEvents();\n+            },\n+\n+            /**\n+             * Events of view\n+             */\n+            bindUiEvents: function () {\n+                jQuery(this.el).on('change', this.selectCategoriesId, jQuery.proxy(this.onSelectCategory, this));","path":"src/tb/apps/content/views/content.view.contribution.index.js","position":68,"original_position":68,"commit_id":"d0891cbb6cd18baa8a9d9a0262047fe4bbe6e80c","original_commit_id":"d0891cbb6cd18baa8a9d9a0262047fe4bbe6e80c","user":{"login":"ndufreche","id":426139,"avatar_url":"https://avatars.githubusercontent.com/u/426139?v=3","gravatar_id":"","url":"https://api.github.com/users/ndufreche","html_url":"https://github.com/ndufreche","followers_url":"https://api.github.com/users/ndufreche/followers","following_url":"https://api.github.com/users/ndufreche/following{/other_user}","gists_url":"https://api.github.com/users/ndufreche/gists{/gist_id}","starred_url":"https://api.github.com/users/ndufreche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndufreche/subscriptions","organizations_url":"https://api.github.com/users/ndufreche/orgs","repos_url":"https://api.github.com/users/ndufreche/repos","events_url":"https://api.github.com/users/ndufreche/events{/privacy}","received_events_url":"https://api.github.com/users/ndufreche/received_events","type":"User","site_admin":false},"body":"for better performances do:\r\nvar elment = jQuery(this.el);\r\nelement.on('change', ...);\r\nelement.on('click', ...);","created_at":"2015-01-15T09:44:27Z","updated_at":"2015-01-15T09:44:27Z","html_url":"https://github.com/backbee/BbCoreJs/pull/94#discussion_r22998934","pull_request_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/22998934"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/94#discussion_r22998934"},"pull_request":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94","id":27414597,"html_url":"https://github.com/backbee/BbCoreJs/pull/94","diff_url":"https://github.com/backbee/BbCoreJs/pull/94.diff","patch_url":"https://github.com/backbee/BbCoreJs/pull/94.patch","issue_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/94","number":94,"state":"open","locked":false,"title":"#3782 Content application","user":{"login":"fkroockmann","id":9247945,"avatar_url":"https://avatars.githubusercontent.com/u/9247945?v=3","gravatar_id":"","url":"https://api.github.com/users/fkroockmann","html_url":"https://github.com/fkroockmann","followers_url":"https://api.github.com/users/fkroockmann/followers","following_url":"https://api.github.com/users/fkroockmann/following{/other_user}","gists_url":"https://api.github.com/users/fkroockmann/gists{/gist_id}","starred_url":"https://api.github.com/users/fkroockmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkroockmann/subscriptions","organizations_url":"https://api.github.com/users/fkroockmann/orgs","repos_url":"https://api.github.com/users/fkroockmann/repos","events_url":"https://api.github.com/users/fkroockmann/events{/privacy}","received_events_url":"https://api.github.com/users/fkroockmann/received_events","type":"User","site_admin":false},"body":"Start the content application with the DOM parser for content.\r\nListing of blocks into contribution bar\r\nAdd drag and drop for content","created_at":"2015-01-15T09:15:22Z","updated_at":"2015-01-15T09:44:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83b526a1011de915380bdbfe48f6d37c34be1c29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94/commits","review_comments_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94/comments","review_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/94/comments","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/d0891cbb6cd18baa8a9d9a0262047fe4bbe6e80c","head":{"label":"backbee:3782","ref":"3782","sha":"d0891cbb6cd18baa8a9d9a0262047fe4bbe6e80c","user":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"repo":{"id":25197244,"name":"BbCoreJs","full_name":"backbee/BbCoreJs","owner":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backbee/BbCoreJs","description":"BackBee front-admin javascript","fork":false,"url":"https://api.github.com/repos/backbee/BbCoreJs","forks_url":"https://api.github.com/repos/backbee/BbCoreJs/forks","keys_url":"https://api.github.com/repos/backbee/BbCoreJs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backbee/BbCoreJs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backbee/BbCoreJs/teams","hooks_url":"https://api.github.com/repos/backbee/BbCoreJs/hooks","issue_events_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/events{/number}","events_url":"https://api.github.com/repos/backbee/BbCoreJs/events","assignees_url":"https://api.github.com/repos/backbee/BbCoreJs/assignees{/user}","branches_url":"https://api.github.com/repos/backbee/BbCoreJs/branches{/branch}","tags_url":"https://api.github.com/repos/backbee/BbCoreJs/tags","blobs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backbee/BbCoreJs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/refs{/sha}","trees_url":"https://api.github.com/repos/backbee/BbCoreJs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/{sha}","languages_url":"https://api.github.com/repos/backbee/BbCoreJs/languages","stargazers_url":"https://api.github.com/repos/backbee/BbCoreJs/stargazers","contributors_url":"https://api.github.com/repos/backbee/BbCoreJs/contributors","subscribers_url":"https://api.github.com/repos/backbee/BbCoreJs/subscribers","subscription_url":"https://api.github.com/repos/backbee/BbCoreJs/subscription","commits_url":"https://api.github.com/repos/backbee/BbCoreJs/commits{/sha}","git_commits_url":"https://api.github.com/repos/backbee/BbCoreJs/git/commits{/sha}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/comments{/number}","issue_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/comments/{number}","contents_url":"https://api.github.com/repos/backbee/BbCoreJs/contents/{+path}","compare_url":"https://api.github.com/repos/backbee/BbCoreJs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backbee/BbCoreJs/merges","archive_url":"https://api.github.com/repos/backbee/BbCoreJs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backbee/BbCoreJs/downloads","issues_url":"https://api.github.com/repos/backbee/BbCoreJs/issues{/number}","pulls_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls{/number}","milestones_url":"https://api.github.com/repos/backbee/BbCoreJs/milestones{/number}","notifications_url":"https://api.github.com/repos/backbee/BbCoreJs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backbee/BbCoreJs/labels{/name}","releases_url":"https://api.github.com/repos/backbee/BbCoreJs/releases{/id}","created_at":"2014-10-14T08:32:15Z","updated_at":"2015-01-06T12:31:56Z","pushed_at":"2015-01-15T09:33:33Z","git_url":"git://github.com/backbee/BbCoreJs.git","ssh_url":"git@github.com:backbee/BbCoreJs.git","clone_url":"https://github.com/backbee/BbCoreJs.git","svn_url":"https://github.com/backbee/BbCoreJs","homepage":null,"size":1922,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":40,"forks":2,"open_issues":40,"watchers":5,"default_branch":"master"}},"base":{"label":"backbee:master","ref":"master","sha":"567610f0cda770572c7dfa4b14da4bd0ecb94141","user":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"repo":{"id":25197244,"name":"BbCoreJs","full_name":"backbee/BbCoreJs","owner":{"login":"backbee","id":8198689,"avatar_url":"https://avatars.githubusercontent.com/u/8198689?v=3","gravatar_id":"","url":"https://api.github.com/users/backbee","html_url":"https://github.com/backbee","followers_url":"https://api.github.com/users/backbee/followers","following_url":"https://api.github.com/users/backbee/following{/other_user}","gists_url":"https://api.github.com/users/backbee/gists{/gist_id}","starred_url":"https://api.github.com/users/backbee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/backbee/subscriptions","organizations_url":"https://api.github.com/users/backbee/orgs","repos_url":"https://api.github.com/users/backbee/repos","events_url":"https://api.github.com/users/backbee/events{/privacy}","received_events_url":"https://api.github.com/users/backbee/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/backbee/BbCoreJs","description":"BackBee front-admin javascript","fork":false,"url":"https://api.github.com/repos/backbee/BbCoreJs","forks_url":"https://api.github.com/repos/backbee/BbCoreJs/forks","keys_url":"https://api.github.com/repos/backbee/BbCoreJs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/backbee/BbCoreJs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/backbee/BbCoreJs/teams","hooks_url":"https://api.github.com/repos/backbee/BbCoreJs/hooks","issue_events_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/events{/number}","events_url":"https://api.github.com/repos/backbee/BbCoreJs/events","assignees_url":"https://api.github.com/repos/backbee/BbCoreJs/assignees{/user}","branches_url":"https://api.github.com/repos/backbee/BbCoreJs/branches{/branch}","tags_url":"https://api.github.com/repos/backbee/BbCoreJs/tags","blobs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/backbee/BbCoreJs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/backbee/BbCoreJs/git/refs{/sha}","trees_url":"https://api.github.com/repos/backbee/BbCoreJs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/{sha}","languages_url":"https://api.github.com/repos/backbee/BbCoreJs/languages","stargazers_url":"https://api.github.com/repos/backbee/BbCoreJs/stargazers","contributors_url":"https://api.github.com/repos/backbee/BbCoreJs/contributors","subscribers_url":"https://api.github.com/repos/backbee/BbCoreJs/subscribers","subscription_url":"https://api.github.com/repos/backbee/BbCoreJs/subscription","commits_url":"https://api.github.com/repos/backbee/BbCoreJs/commits{/sha}","git_commits_url":"https://api.github.com/repos/backbee/BbCoreJs/git/commits{/sha}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/comments{/number}","issue_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/comments/{number}","contents_url":"https://api.github.com/repos/backbee/BbCoreJs/contents/{+path}","compare_url":"https://api.github.com/repos/backbee/BbCoreJs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/backbee/BbCoreJs/merges","archive_url":"https://api.github.com/repos/backbee/BbCoreJs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/backbee/BbCoreJs/downloads","issues_url":"https://api.github.com/repos/backbee/BbCoreJs/issues{/number}","pulls_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls{/number}","milestones_url":"https://api.github.com/repos/backbee/BbCoreJs/milestones{/number}","notifications_url":"https://api.github.com/repos/backbee/BbCoreJs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/backbee/BbCoreJs/labels{/name}","releases_url":"https://api.github.com/repos/backbee/BbCoreJs/releases{/id}","created_at":"2014-10-14T08:32:15Z","updated_at":"2015-01-06T12:31:56Z","pushed_at":"2015-01-15T09:33:33Z","git_url":"git://github.com/backbee/BbCoreJs.git","ssh_url":"git@github.com:backbee/BbCoreJs.git","clone_url":"https://github.com/backbee/BbCoreJs.git","svn_url":"https://github.com/backbee/BbCoreJs","homepage":null,"size":1922,"stargazers_count":5,"watchers_count":5,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":40,"forks":2,"open_issues":40,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/94"},"issue":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/94"},"comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94/comments"},"review_comment":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/94/commits"},"statuses":{"href":"https://api.github.com/repos/backbee/BbCoreJs/statuses/d0891cbb6cd18baa8a9d9a0262047fe4bbe6e80c"}}}}