[LON-CAPA-cvs] cvs: loncom /html/adm/jmol Jmol.js

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 05 Jul 2005 14:11:51 -0000


albertel		Tue Jul  5 10:11:51 2005 EDT

  Modified files:              
    /loncom/html/adm/jmol	Jmol.js 
  Log:
  - BUG#4190 we want to allow codebases that start at /
  
  
  
Index: loncom/html/adm/jmol/Jmol.js
diff -u loncom/html/adm/jmol/Jmol.js:1.1 loncom/html/adm/jmol/Jmol.js:1.2
--- loncom/html/adm/jmol/Jmol.js:1.1	Fri Jul  1 16:23:42 2005
+++ loncom/html/adm/jmol/Jmol.js	Tue Jul  5 10:11:47 2005
@@ -1,7 +1,7 @@
 /* $RCSfile: Jmol.js,v $
  * $Author: albertel $
- * $Date: 2005/07/01 20:23:42 $
- * $Revision: 1.1 $
+ * $Date: 2005/07/05 14:11:47 $
+ * $Revision: 1.2 $
  *
  * Copyright (C) 2004  The Jmol Development Team
  *
@@ -44,9 +44,9 @@
       codebaseDirectory.indexOf("https://") == 0)
     alert("codebaseDirectory should be directory relative,\n" +
 	  "not be an absolute URL : " + codebaseDirectory);
-  else if (codebaseDirectory.charAt(0) == '/')
-    alert("codebaseDirectory should be directory relative,\n" +
-	  "not relative to the root of the web server : " + codebaseDirectory);
+//  else if (codebaseDirectory.charAt(0) == '/')
+//    alert("codebaseDirectory should be directory relative,\n" +
+//	  "not relative to the root of the web server : " + codebaseDirectory);
   _jmolSetCodebase(codebaseDirectory);
   _jmolOnloadResetForms();
   _jmol.initialized = true;