0ca64a8ebf1f4519f2abc97e2d49b9c5fe41b9d9 jcasper Mon Jun 10 13:17:52 2013 -0700 Added a URL rewrite rule for ftp links on hgdownload, refs #10888 diff --git src/hg/js/staticDoc.js src/hg/js/staticDoc.js index eb1b59f..7c5903e 100644 --- src/hg/js/staticDoc.js +++ src/hg/js/staticDoc.js @@ -1,22 +1,25 @@ $(document).ready(function(){ $("a.change").each(function(){ this.href = this.href.replace(/^http:\/\/genome\.ucsc\.edu/, "http://" +window.location.host); }); $("a.insideLink").each(function(){ this.href = this.href.replace(/=http:\/\/genome\.ucsc\.edu/, "=http://" +window.location.host); }); $("a.changeHg").each(function(){ this.href = this.href.replace(/^http:\/\/hgdownload\.cse\.ucsc\.edu/, "http://" +window.location.host); }); + $("a.changeHgFtp").each(function(){ + this.href = this.href.replace(/^ftp:\/\/hgdownload\.cse\.ucsc\.edu/, "ftp://" +window.location.host); + }); if (location.host == 'genome-euro.ucsc.edu'){ $("a.euro").each(function(){ this.href = this.href.replace(/^http:\/\/genome\.ucsc\.edu/, "http://" +window.location.host); }); } });