{"action":"created","comment":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/24153054","id":24153054,"diff_hunk":"@@ -16,88 +16,118 @@\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-define(['jquery', 'tb.core.Renderer', 'text!bundle/tpl/index', 'bundle.repository'], function (jQuery, Renderer, template, BundleRepository) {\n+define(\n+    [\n+        'tb.core.ApplicationManager',\n+        'jquery',\n+        'tb.core.Renderer',\n+        'text!bundle/tpl/index',\n+        'bundle.repository'\n+    ],\n+    function (ApplicationManager, jQuery, Renderer, template, BundleRepository) {\n \n-    'use strict';\n-\n-    /**\n-     * View of bundle's index\n-     * @type {Object} Backbone.View\n-     */\n-    var BundleViewIndex = Backbone.View.extend({\n+        'use strict';\n \n         /**\n-         * Point of Toolbar in DOM\n+         * View of bundle's index\n+         * @type {Object} Backbone.View\n          */\n-        el: '#bb5-maintabsContent',\n+        var BundleViewIndex = Backbone.View.extend({\n \n-        /**\n-         * Point of bundle's application in DOM\n-         */\n-        listEl: '#extensions',\n+            /**\n+             * Point of bundle's application in DOM\n+             */\n+            listEl: '#extensions',\n \n-        /**\n-         * Initialize of BundleViewIndex\n-         * The default key is used for show the first bundle in index\n-         * @param {Object} config\n-         * @param {String} defaultKey\n-         */\n-        initialize: function (config, defaultKey) {\n-            var currentBundle = config.datas.bundles[0];\n-            if (defaultKey !== undefined) {\n-                currentBundle = config.datas.bundles[defaultKey];\n-            }\n+            id: 'bundle-tab',\n \n-            this.bundle = {bundle: currentBundle};\n-        },\n+            /**\n+             * Initialize of BundleViewIndex\n+             * The default key is used for show the first bundle in index\n+             * @param {Object} config\n+             * @param {String} defaultKey\n+             */\n+            initialize: function (config, defaultKey) {\n \n-        /**\n-         * Events of the view\n-         */\n-        events: {\n-            'click .btn-dialog-extension': 'doListDialog',\n-            'click div.activation-btn-group a': 'doExtensionActivation'\n-        },\n+                if (config.bundles !== undefined) {\n+                    var currentBundle = config.bundles[0];\n \n-        /**\n-         * Show or Hide a dialog with bundle list\n-         */\n-        doListDialog: function () {\n-            if (jQuery(this.listEl).dialog('isOpen')) {\n-                jQuery(this.listEl).dialog('close');\n-            } else {\n-                jQuery(this.listEl).dialog('open');\n-            }\n-        },\n+                    if (defaultKey !== undefined) {\n+                        currentBundle = config.bundles[defaultKey];\n+                    }\n \n-        /**\n-         * Enable or disable the current bundle\n-         * @param {Object} event\n-         */\n-        doExtensionActivation: function (event) {\n-            var self = jQuery(event.currentTarget),\n-                bundleId = self.parent().attr('data-bundle-id');\n+                    this.bundle = currentBundle;\n+                }\n \n-            self.siblings('a').removeClass('active');\n-            self.addClass('active');\n+                this.force = false;\n+                if (config.force === true) {","path":"src/tb/apps/bundle/views/bundle.view.index.js","position":101,"original_position":101,"commit_id":"786870446f7aad1c606e0e4deedc0eba55fab444","original_commit_id":"ad61132c721a58448c127f9ffdb5f8410dd18a73","user":{"login":"mickaelandrieu","id":1247388,"avatar_url":"https://avatars.githubusercontent.com/u/1247388?v=3","gravatar_id":"","url":"https://api.github.com/users/mickaelandrieu","html_url":"https://github.com/mickaelandrieu","followers_url":"https://api.github.com/users/mickaelandrieu/followers","following_url":"https://api.github.com/users/mickaelandrieu/following{/other_user}","gists_url":"https://api.github.com/users/mickaelandrieu/gists{/gist_id}","starred_url":"https://api.github.com/users/mickaelandrieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickaelandrieu/subscriptions","organizations_url":"https://api.github.com/users/mickaelandrieu/orgs","repos_url":"https://api.github.com/users/mickaelandrieu/repos","events_url":"https://api.github.com/users/mickaelandrieu/events{/privacy}","received_events_url":"https://api.github.com/users/mickaelandrieu/received_events","type":"User","site_admin":false},"body":"```js\r\nthis.force = (config.force === true);\r\n```","created_at":"2015-02-05T09:58:02Z","updated_at":"2015-02-05T09:58:02Z","html_url":"https://github.com/backbee/BbCoreJs/pull/153#discussion_r24153054","pull_request_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/24153054"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/153#discussion_r24153054"},"pull_request":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153","id":28709413,"html_url":"https://github.com/backbee/BbCoreJs/pull/153","diff_url":"https://github.com/backbee/BbCoreJs/pull/153.diff","patch_url":"https://github.com/backbee/BbCoreJs/pull/153.patch","issue_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/153","number":153,"state":"open","locked":false,"title":"#150 Optimize navigation in toolbar","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":"Optimize load of all applications","created_at":"2015-02-05T09:24:49Z","updated_at":"2015-02-05T09:58:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1004cea66ad600148a4b964fad2c5e80918cb1fd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153/commits","review_comments_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153/comments","review_comment_url":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/backbee/BbCoreJs/issues/153/comments","statuses_url":"https://api.github.com/repos/backbee/BbCoreJs/statuses/786870446f7aad1c606e0e4deedc0eba55fab444","head":{"label":"backbee:150","ref":"150","sha":"786870446f7aad1c606e0e4deedc0eba55fab444","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-02-05T09:18:52Z","pushed_at":"2015-02-05T09:52:39Z","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":2719,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":43,"forks":2,"open_issues":43,"watchers":5,"default_branch":"master"}},"base":{"label":"backbee:master","ref":"master","sha":"c249a8055fd9b06791c6e1bafe03344ec3926140","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-02-05T09:18:52Z","pushed_at":"2015-02-05T09:52:39Z","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":2719,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":43,"forks":2,"open_issues":43,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153"},"html":{"href":"https://github.com/backbee/BbCoreJs/pull/153"},"issue":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/153"},"comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/backbee/BbCoreJs/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/backbee/BbCoreJs/statuses/786870446f7aad1c606e0e4deedc0eba55fab444"}}}}