From: <ahe...@us...> - 2011-09-30 19:31:34
|
Revision: 16188 http://jmol.svn.sourceforge.net/jmol/?rev=16188&view=rev Author: aherraez Date: 2011-09-30 19:31:27 +0000 (Fri, 30 Sep 2011) Log Message: ----------- easy change to the signed applet by using JMOLJAR=SIGNED on the URL Modified Paths: -------------- trunk/Jmol/appletweb/Jmol.js Modified: trunk/Jmol/appletweb/Jmol.js =================================================================== --- trunk/Jmol/appletweb/Jmol.js 2011-09-30 12:02:33 UTC (rev 16187) +++ trunk/Jmol/appletweb/Jmol.js 2011-09-30 19:31:27 UTC (rev 16188) @@ -105,6 +105,9 @@ // The default action, if the user just presses "OK" is to NOT allow the change. // The user must type the word "yes" in the prompt box for the change to be approved. +// For a simple change to the signed applet in the same original directory (if it's available), +// you can use JMOLJAR=SIGNED on the URL. + // If you don't want people to be able to switch in their own JAR file on your page, // simply set this next line to read "var allowJMOLJAR = false". @@ -132,6 +135,7 @@ alert("The web page URL was ignored. Continuing using " + _jmol.archivePath + ' in directory "' + codebaseDirectory + '"'); } } else { + if (f=="SIGNED") { f=true; } fileNameOrUseSignedApplet = f; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |