diff --git a/template/app/controller/Classes.js b/template/app/controller/Classes.js index 6282c55bcceb93201cad18cf772fb3195c3bce7e..d09954b1fe63493c91b7240db0ff318ba5f25172 100644 --- a/template/app/controller/Classes.js +++ b/template/app/controller/Classes.js @@ -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); } diff --git a/template/app/view/tree/HistoryItems.js b/template/app/view/tree/HistoryItems.js index 987bf54c78b53f6d8edd52c5115cd5f6c5511c96..3d4994b952973b16ee4ebe7486c153f3d09fab24 100644 --- a/template/app/view/tree/HistoryItems.js +++ b/template/app/view/tree/HistoryItems.js @@ -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', diff --git a/template/app/view/tree/Tree.js b/template/app/view/tree/Tree.js index 3c2e7cc7635db6028a285e265b743a7bab5be05c..bdc290678c40e9d52112874fd9fd52336c819426 100644 --- a/template/app/view/tree/Tree.js +++ b/template/app/view/tree/Tree.js @@ -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