cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1518262 - /cxf/web/template/template.vm
Date Wed, 28 Aug 2013 15:21:29 GMT
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);
 }
 



Mime
View raw message