Loading template/app/Favorites.js +10 −2 Original line number Diff line number Diff line Loading @@ -6,6 +6,14 @@ Ext.define("Docs.Favorites", { storeName: 'Favorites', singleton: true, /** * Associates Favorites with Docs TreePanel component. * @param {Docs.view.tree.Tree} tree */ setTree: function(tree) { this.tree = tree; }, /** * Adds class to favorites * Loading @@ -15,7 +23,7 @@ Ext.define("Docs.Favorites", { if (!this.has(cls)) { this.store.add({cls: cls}); this.syncStore(); Ext.getCmp("treePanelCmp").setFavorite(cls, true); this.tree.setFavorite(cls, true); } }, Loading @@ -28,7 +36,7 @@ Ext.define("Docs.Favorites", { if (this.has(cls)) { this.store.removeAt(this.store.findExact('cls', cls)); this.syncStore(); Ext.getCmp("treePanelCmp").setFavorite(cls, false); this.tree.setFavorite(cls, false); } }, Loading template/app/controller/Classes.js +6 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ Ext.define('Docs.controller.Classes', { { ref: 'classOverview', selector: 'classoverview' }, { ref: 'tree', selector: 'classtree' } ], Loading @@ -40,7 +44,7 @@ Ext.define('Docs.controller.Classes', { }); this.control({ '#treePanelCmp': { 'classtree': { // Can't simply assign the loadClass function as event // handler, because an extra event options object is // appended to the event arguments, which we don't Loading Loading @@ -144,7 +148,7 @@ Ext.define('Docs.controller.Classes', { this.getTabPanel().setLoading(false); } Ext.getCmp('treePanelCmp').selectClass(cls.name); this.getTree().selectClass(cls.name); } if (anchor) { Loading template/app/view/tree/Tree.js +3 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,7 @@ Ext.define('Docs.view.tree.Tree', { 'Docs.History' ], id: 'treePanelCmp', cls: 'iScroll', cls: 'class-tree iScroll', folderSort: true, useArrows: true, rootVisible: false, Loading Loading @@ -42,6 +41,8 @@ Ext.define('Docs.view.tree.Tree', { this.on("itemclick", this.onItemClick, this); Docs.Favorites.setTree(this); this.dockedItems = [ { xtype: 'container', Loading template/resources/sass/viewport.scss +1 −1 Original line number Diff line number Diff line Loading @@ -351,7 +351,7 @@ a:hover { display: block; } } } #treePanelCmp { .class-tree { .x-grid-cell-inner { font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px; Loading Loading
template/app/Favorites.js +10 −2 Original line number Diff line number Diff line Loading @@ -6,6 +6,14 @@ Ext.define("Docs.Favorites", { storeName: 'Favorites', singleton: true, /** * Associates Favorites with Docs TreePanel component. * @param {Docs.view.tree.Tree} tree */ setTree: function(tree) { this.tree = tree; }, /** * Adds class to favorites * Loading @@ -15,7 +23,7 @@ Ext.define("Docs.Favorites", { if (!this.has(cls)) { this.store.add({cls: cls}); this.syncStore(); Ext.getCmp("treePanelCmp").setFavorite(cls, true); this.tree.setFavorite(cls, true); } }, Loading @@ -28,7 +36,7 @@ Ext.define("Docs.Favorites", { if (this.has(cls)) { this.store.removeAt(this.store.findExact('cls', cls)); this.syncStore(); Ext.getCmp("treePanelCmp").setFavorite(cls, false); this.tree.setFavorite(cls, false); } }, Loading
template/app/controller/Classes.js +6 −2 Original line number Diff line number Diff line Loading @@ -28,6 +28,10 @@ Ext.define('Docs.controller.Classes', { { ref: 'classOverview', selector: 'classoverview' }, { ref: 'tree', selector: 'classtree' } ], Loading @@ -40,7 +44,7 @@ Ext.define('Docs.controller.Classes', { }); this.control({ '#treePanelCmp': { 'classtree': { // Can't simply assign the loadClass function as event // handler, because an extra event options object is // appended to the event arguments, which we don't Loading Loading @@ -144,7 +148,7 @@ Ext.define('Docs.controller.Classes', { this.getTabPanel().setLoading(false); } Ext.getCmp('treePanelCmp').selectClass(cls.name); this.getTree().selectClass(cls.name); } if (anchor) { Loading
template/app/view/tree/Tree.js +3 −2 Original line number Diff line number Diff line Loading @@ -10,8 +10,7 @@ Ext.define('Docs.view.tree.Tree', { 'Docs.History' ], id: 'treePanelCmp', cls: 'iScroll', cls: 'class-tree iScroll', folderSort: true, useArrows: true, rootVisible: false, Loading Loading @@ -42,6 +41,8 @@ Ext.define('Docs.view.tree.Tree', { this.on("itemclick", this.onItemClick, this); Docs.Favorites.setTree(this); this.dockedItems = [ { xtype: 'container', Loading
template/resources/sass/viewport.scss +1 −1 Original line number Diff line number Diff line Loading @@ -351,7 +351,7 @@ a:hover { display: block; } } } #treePanelCmp { .class-tree { .x-grid-cell-inner { font-family: "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif; font-size: 13px; Loading