Loading template/app/controller/Classes.js +5 −5 Original line number Diff line number Diff line Loading @@ -131,11 +131,11 @@ Ext.define('Docs.controller.Classes', { docTabPanel.setLoading(false); } // var prevCls = historyStore.find('cls', cls.name); // if (prevCls === -1) { // historyStore.add({cls: cls.name}); // historyStore.sync(); // } var prevCls = historyStore.find('cls', cls.name); if (prevCls === -1) { historyStore.add({cls: cls.name}); historyStore.sync(); } Ext.getCmp('treePanelCmp').selectClass(cls.name); } Loading template/app/view/tree/HistoryItems.js +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ Ext.define('Docs.view.tree.HistoryItems', { extend: 'Ext.view.View', itemSelector: 'div.a', itemSelector: 'div.item', emptyText: 'No history', renderTo: Ext.getBody(), cls: 'hover-menu-menu show', Loading template/app/view/tree/Tree.js +20 −20 Original line number Diff line number Diff line Loading @@ -14,26 +14,26 @@ Ext.define('Docs.view.tree.Tree', { border: false, bodyBorder: false, // dockedItems: [ // { // xtype: 'container', // layout: { // type: 'hbox' // }, // dock: 'top', // margin: '0 0 15 0', // items: [ // { // margin: '0 10 0 0', // xtype: 'button', // text: 'Favorites' // }, // { // xtype: 'docshistorybutton' // } // ] // } // ], dockedItems: [ { xtype: 'container', layout: { type: 'hbox' }, dock: 'top', margin: '0 0 15 0', items: [ { margin: '0 10 0 0', xtype: 'button', text: 'Favorites' }, { xtype: 'docshistorybutton' } ] } ], initComponent: function() { // Expand the main tree Loading Loading
template/app/controller/Classes.js +5 −5 Original line number Diff line number Diff line Loading @@ -131,11 +131,11 @@ Ext.define('Docs.controller.Classes', { docTabPanel.setLoading(false); } // var prevCls = historyStore.find('cls', cls.name); // if (prevCls === -1) { // historyStore.add({cls: cls.name}); // historyStore.sync(); // } var prevCls = historyStore.find('cls', cls.name); if (prevCls === -1) { historyStore.add({cls: cls.name}); historyStore.sync(); } Ext.getCmp('treePanelCmp').selectClass(cls.name); } Loading
template/app/view/tree/HistoryItems.js +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ Ext.define('Docs.view.tree.HistoryItems', { extend: 'Ext.view.View', itemSelector: 'div.a', itemSelector: 'div.item', emptyText: 'No history', renderTo: Ext.getBody(), cls: 'hover-menu-menu show', Loading
template/app/view/tree/Tree.js +20 −20 Original line number Diff line number Diff line Loading @@ -14,26 +14,26 @@ Ext.define('Docs.view.tree.Tree', { border: false, bodyBorder: false, // dockedItems: [ // { // xtype: 'container', // layout: { // type: 'hbox' // }, // dock: 'top', // margin: '0 0 15 0', // items: [ // { // margin: '0 10 0 0', // xtype: 'button', // text: 'Favorites' // }, // { // xtype: 'docshistorybutton' // } // ] // } // ], dockedItems: [ { xtype: 'container', layout: { type: 'hbox' }, dock: 'top', margin: '0 0 15 0', items: [ { margin: '0 10 0 0', xtype: 'button', text: 'Favorites' }, { xtype: 'docshistorybutton' } ] } ], initComponent: function() { // Expand the main tree Loading