X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..6746dc89c47ed01b165cc1152533605f97eb8e8d:/docs/js/Guides.js diff --git a/docs/js/Guides.js b/docs/js/Guides.js deleted file mode 100644 index 54980096..00000000 --- a/docs/js/Guides.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * Takes care of loading guides. - */ -Ext.define("Docs.Guides", { - singleton: true, - - /** - * Loads guide with given name. - * - * @param {String} name name of the guide - * @param {Boolean} noHistory true to not add browser history entry - */ - load: function(name, noHistory) { - noHistory || Docs.History.push("/guide/" + name); - - Ext.data.JsonP.request({ - url: Docs.App.getBaseUrl() + "/guides/" + name + "/README.js", - callbackName: name, - success: function(json) { - this.render(json.guide); - }, - scope: this - }); - }, - - render: function(html) { - Ext.get("api-guide").update(html); - 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(); - } -});