Commits

Sam Adams committed 984c7b9

Fix relative/absolute URIs in compchem + crystallography templates

  • Participants
  • Parent commits efafde3

Comments (0)

Files changed (2)

crystallography-handler/src/main/resources/net/chempound/crystal/includes/headers.html

     <!-- import jmol -->
-    <script src="/plugins/jmol/jmol/Jmol.js" type="text/javascript"></script>
+    <script src="${URI_BASE}/plugins/jmol/jmol/Jmol.js" type="text/javascript"></script>
 
     <!-- import jquery -->
-    <script src="/plugins/jquery/jquery-1.4.2.js" type="text/javascript"></script>
+    <script src="${URI_BASE}/plugins/jquery/jquery-1.4.2.js" type="text/javascript"></script>
 
     <!-- import jmol-jquery -->
-    <script src="/plugins/jmol/jquery.jmol.js" type="text/javascript"></script>
+    <script src="${URI_BASE}/plugins/jmol/jquery.jmol.js" type="text/javascript"></script>
     <!-- import style sheet -->
-    <link href="/plugins/jmol/jquery.jmol.css" type="text/css" rel="stylesheet" />
+    <link href="${URI_BASE}/plugins/jmol/jquery.jmol.css" type="text/css" rel="stylesheet" />

crystallography-handler/src/main/resources/net/chempound/crystal/templates/crystal.ftl

 <script type="text/javascript">
     $(document).ready(function() {
         var useSignedApplet = true;
-        jmolInitialize("/plugins/jmol/jmol/", useSignedApplet);
+        jmolInitialize("${URI_BASE}/plugins/jmol/jmol/", useSignedApplet);
 
         $("#jmol").jmol({
             'img': "${_.imageFile}",