Permalink
Browse files

[windoc] Fix some JS

  • Loading branch information...
1 parent fb269bc commit 2379f5c92ec55758a1d88a4ca588712f4a944df1 @garuma garuma committed May 2, 2012
Showing with 3 additions and 11 deletions.
  1. +3 −11 webdoc/monodoc.ashx
View
@@ -314,7 +314,6 @@ namespace Mono.Website.Handlers
ctx.Response.Write (tree_path);
ctx.Response.Write (@"' />
<script type='text/javascript'>
-<!--
function login (rurl)
{
document.location.href = 'login.aspx?ReturnUrl=' + rurl;
@@ -355,18 +354,11 @@ function makeLink (link)
default:
if(document.all) {
- return '");
- ctx.Response.Write (ctx.Request.Path);
- ctx.Response.Write (@"?link=' + link.replace(/\+/g, '%2B').replace(/file:\/\/\//, '');
+ return '/monodoc.ashx?link=' + link.replace(/\+/g, '%2B').replace(/file:\/\/\//, '');
}
- return '");
-
- ctx.Response.Write (ctx.Request.Path);
- ctx.Response.Write (@"?link=' + link.replace(/\+/g, '%2B');
+ return '/monodoc.ashx?link=' + link.replace(/\+/g, '%2B');
}
-}
--->
-");
+}");
if (!string.IsNullOrEmpty (Global.ua)) {
ctx.Response.Write (@"var _gaq = _gaq || [];
_gaq.push(['_setAccount', '");

0 comments on commit 2379f5c

Please sign in to comment.