diff options
author | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 03:22:45 +0400 |
---|---|---|
committer | Nina Vyedin <nina.vyedin@gmail.com> | 2013-03-05 07:56:00 +0400 |
commit | 2f420dab2b480bffec2dbe6505f1b229fd3d0c59 (patch) | |
tree | 9a1d0fd72a7b1297c78753d0a5c24775e43db1f2 /webdoc | |
parent | f3e62880d461b9cfe188c70762e9a55fef238c2a (diff) |
[webdoc] make some changes to how plugins are wired
Diffstat (limited to 'webdoc')
-rw-r--r-- | webdoc/Global.asax | 4 | ||||
-rw-r--r-- | webdoc/index.aspx | 13 |
2 files changed, 12 insertions, 5 deletions
diff --git a/webdoc/Global.asax b/webdoc/Global.asax index 32a73247..9540553f 100644 --- a/webdoc/Global.asax +++ b/webdoc/Global.asax @@ -11,7 +11,6 @@ public static RootTree help_tree; [ThreadStatic] static SearchableIndex search_index; public static string ua = null; -static string Plugins = null; void Application_Start () { @@ -27,9 +26,6 @@ void Application_Start () //Google analytics if we want em ua = WebConfigurationManager.AppSettings["GoogleAnalytics"]; - //grab the Plugins def value from web.config - Plugins = WebConfigurationManager.AppSettings["Plugins"]; - SettingsHandler.Settings.EnableEditing = false; } diff --git a/webdoc/index.aspx b/webdoc/index.aspx index 591c6080..995fb5a9 100644 --- a/webdoc/index.aspx +++ b/webdoc/index.aspx @@ -74,7 +74,18 @@ void Page_Load (object sender, EventArgs e) </div> <% = Plugin.GetPluginContent (Plugin.PluginContent.Footer) %> <!--include external javascript--> -<% = Global.CreateTreeBootFragment () %> <% = Plugin.GetPluginContent (Plugin.PluginContent.Javascript) %> +<script type="text/javascript"> + var tree = new PTree (); + tree.strSrcBase = 'monodoc.ashx?tree='; + tree.strActionBase = '?link='; + tree.strImagesBase = 'plugins/sidebar-plugin/dependencies/xtree/images/msdn2/'; + tree.strImageExt = '.gif'; + tree.onClickCallback = function (url) { change_page (url); }; + var content = document.getElementById ('contentList'); + var root = tree.CreateItem (null, 'Documentation List', 'root:', '', true); + content.appendChild (root); + <% = Global.CreateTreeBootFragment () %> +</script> </body> </html> |