[wsas-java-dev] svn commit r6060 - trunk/wsas/java/modules/www/extensions/core/js

svn at wso2.org svn at wso2.org
Thu Aug 2 20:56:13 PDT 2007


Author: saminda
Date: Thu Aug  2 20:56:08 2007
New Revision: 6060

Modified:
   trunk/wsas/java/modules/www/extensions/core/js/wso2wsas.js
Log:
Fixed for JIRA-444


Modified: trunk/wsas/java/modules/www/extensions/core/js/wso2wsas.js
==============================================================================
--- trunk/wsas/java/modules/www/extensions/core/js/wso2wsas.js	(original)
+++ trunk/wsas/java/modules/www/extensions/core/js/wso2wsas.js	Thu Aug  2 20:56:08 2007
@@ -42,14 +42,12 @@
     var _tmpURL = locationString.substring(0, locationString.lastIndexOf('/'));
     if (_tmpURL.indexOf('https') == -1) {
         //	alert("You can only access the management console through https. \n The default https port for @server_short_name@ is " + httpsPort + ".");
-        var newURL = "https" + URL.substring(URL.indexOf('://'), URL.lastIndexOf(':') + 1) +
-                     httpsPort;
         var httpsAlertText =
                 "You can only access the management console through https. <br/> The default https port for @server_short_name@ is " +
-                httpsPort + "." +
+                HTTPS_PORT + "." +
                 "<br/> If the default settings have not been changed the management console can be accessed using the following URL.<br/>" +
-                "<a href='" + newURL + "'>" + newURL + "</a>";
-        wso2.wsf.Util.alertInternal(httpsAlertText, WARNING_MESSAGE);
+                "<a href='" + URL + "'>" + URL + "</a>";
+        wso2.wsf.Util.alertWarning(httpsAlertText);
 
     }
 




More information about the Wsas-java-dev mailing list