You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2013/08/28 17:21:29 UTC

svn commit: r1518262 - /cxf/web/template/template.vm

Author: dkulp
Date: Wed Aug 28 15:21:29 2013
New Revision: 1518262

URL: http://svn.apache.org/r1518262
Log:
handle the ":"

Modified:
    cxf/web/template/template.vm

Modified: cxf/web/template/template.vm
URL: http://svn.apache.org/viewvc/cxf/web/template/template.vm?rev=1518262&r1=1518261&r2=1518262&view=diff
==============================================================================
--- cxf/web/template/template.vm (original)
+++ cxf/web/template/template.vm Wed Aug 28 15:21:29 2013
@@ -28,8 +28,8 @@
 <script type="text/javascript">
 var http = window.location.protocol;
 
-if ("https" != http) {
-    http = "http";
+if ("https:" != http) {
+    http = "http:";
 }
 var head= document.getElementsByTagName('head')[0];
 
@@ -38,14 +38,14 @@ function addLink(url)
    link= document.createElement('link');
    link.type= 'text/css';
    link.rel= 'stylesheet';
-   link.href= http + '://cxf.apache.org' + url; 
+   link.href= http + '//cxf.apache.org' + url; 
    head.appendChild(link);
 }
 function addScript(scpt)
 {
    var script= document.createElement('script');
    script.type= 'text/javascript';
-   script.src= http + '://cxf.apache.org' + scpt;
+   script.src= http + '//cxf.apache.org' + scpt;
    head.appendChild(script);
 }