From 52cd682405f7a052d45d83b66cc75f19316ceffe Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Thu, 10 Nov 2011 02:36:40 +0000 Subject: Enable multiple apps to co-exist under different paths in a single Virtual Host and Internet domain. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1200105 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/edit/htdocs/graph/index.html | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'sca-cpp/trunk/modules/edit/htdocs/graph') diff --git a/sca-cpp/trunk/modules/edit/htdocs/graph/index.html b/sca-cpp/trunk/modules/edit/htdocs/graph/index.html index 77fa1d4888..1732590079 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/graph/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/graph/index.html @@ -68,22 +68,9 @@ if (isNil(appname)) { ispalette = true; } -/** - * Return the link to an app. - */ -function applink(appname) { - var protocol = location.protocol; - var host = location.hostname; - var port = ':' + location.port; - if (port == ':80' || port == ':443' || port == ':') - port = ''; - var link = protocol + '//' + appname + '.' + host + port + '/'; - return link; -} - // Set page titles document.title = ui.windowtitle(location.hostname) + ' - ' + (isNil(config.compose)? 'Composition' : config.compose) + ' - ' + appname; -$('appNameHeader').innerHTML = '' + appname + ''; +$('appNameHeader').innerHTML = '' + appname + ''; /** * Component value field, add, delete and play buttons. @@ -2060,7 +2047,7 @@ function complink(appname, cname) { var port = ':' + location.port; if (port == ':80' || port == ':443' || port == ':') port = ''; - var link = protocol + '//' + appname + '.' + host + port + '/c/' + cname; + var link = protocol + '//' + host + port + '/' + appname + '/c/' + cname; return link; } @@ -2090,8 +2077,7 @@ function showdata(gcomp) { return true; if (isNil(gcomp)) return true; - var clink = complink(appname, gcomp.id); - cvalue.value = clink; + cvalue.value = complink(appname, gcomp.id); cplay.innerHTML = '<'; gvisible = false; pdiv.innerHTML = ''; -- cgit v1.2.3