Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[webdoc] Fill in the page title automatically based on the displayed …

…documentation content.
  • Loading branch information...
commit f49eadbdc4f04e4cddb3c45abec873cfeb3dc4e6 1 parent 1dd1d88
@garuma garuma authored
Showing with 9 additions and 1 deletion.
  1. +9 −1 webdoc/index.aspx
View
10 webdoc/index.aspx
@@ -18,7 +18,8 @@
<script language="c#" runat="server">
public string GetTitle ()
{
- return Global.help_tree.GetTitle (Request.QueryString ["link"]);
+ return "Monodoc";
+// return Global.help_tree.GetTitle (Request.QueryString ["link"]);
}
// Get the path to be shown in the content fram
@@ -116,9 +117,16 @@ add_native_browser_link = function () {
}
};
add_native_browser_link ();
+change_window_title = function () {
+ var contentTitle = $('#content_frame').contents ().find ('title').text ();
+ var title = contentTitle + "- Monodoc";
+ $('title').text (title);
+};
+change_window_title ();
content_frame.load (update_tree);
content_frame.load (add_native_browser_link);
+content_frame.load (change_window_title);
</script>
<% = Global.IncludeExternalHeader (Global.ExternalResourceType.Javascript) %>
<% = Global.IncludeExternalFooter (Global.ExternalResourceType.Javascript) %>
Please sign in to comment.
Something went wrong with that request. Please try again.