|
From: <duc...@us...> - 2008-02-13 04:20:56
|
Revision: 747
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=747&view=rev
Author: ducheneaut
Date: 2008-02-12 20:20:59 -0800 (Tue, 12 Feb 2008)
Log Message:
-----------
Fixed URLs pointing at the help pages to be relative to the current host.
Modified Paths:
--------------
maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
Modified: maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java
===================================================================
--- maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2008-02-13 04:10:45 UTC (rev 746)
+++ maven/trunk/ogoglio-viewer-applet/src/main/java/com/ogoglio/viewer/applet/ViewerApplet.java 2008-02-13 04:20:59 UTC (rev 747)
@@ -781,14 +781,18 @@
if(ae.getSource() == help) {
setVisible(false);
+
+ String protocol = theApplet.getCodeBase().getProtocol();
+ int port = theApplet.getCodeBase().getPort();
+ String host = theApplet.getCodeBase().getHost();
if (osType.startsWith("Mac")) {
- helpURL = "http://transmutable.com/appletSettingsOSX.html";
+ helpURL = protocol + "://" + host + ":" + port + "/appletSettingsOSX.html";
} else if (osType.startsWith("Windows")) {
- helpURL = "http://transmutable.com/appletSettingsXP.html";
+ helpURL = protocol + "://" + host + ":" + port + "/appletSettingsXP.html";
} else {
// TODO: add pages for other OS
- helpURL = "http://transmutable.com/support.html";
+ helpURL = protocol + "://" + host + ":" + port + "/support.html";
}
try {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|