Loading template/js/OverviewPanel.js +9 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,15 @@ Ext.define('Docs.OverviewPanel', { this.addDocked(this.toolbar); this.update(this.renderClass(docClass)); this.syntaxHighlight(); }, // Marks all code blocks with "prettyprint" class and then calls // the prettify library function to highlight them. syntaxHighlight: function() { Ext.Array.forEach(Ext.query("pre > code"), function(el) { Ext.get(el).addCls("prettyprint"); }); prettyPrint(); }, Loading template/js/functions.js +0 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ var showClass = function(cls, anchor) { docOverviewTab.load(cls); docOverviewTab.setLoading(false); prettyPrint(); if (anchor) { Ext.getCmp('doc-overview').scrollToEl("a[name=" + anchor + "]"); } else { Loading Loading
template/js/OverviewPanel.js +9 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,15 @@ Ext.define('Docs.OverviewPanel', { this.addDocked(this.toolbar); this.update(this.renderClass(docClass)); this.syntaxHighlight(); }, // Marks all code blocks with "prettyprint" class and then calls // the prettify library function to highlight them. syntaxHighlight: function() { Ext.Array.forEach(Ext.query("pre > code"), function(el) { Ext.get(el).addCls("prettyprint"); }); prettyPrint(); }, Loading
template/js/functions.js +0 −2 Original line number Diff line number Diff line Loading @@ -75,8 +75,6 @@ var showClass = function(cls, anchor) { docOverviewTab.load(cls); docOverviewTab.setLoading(false); prettyPrint(); if (anchor) { Ext.getCmp('doc-overview').scrollToEl("a[name=" + anchor + "]"); } else { Loading