You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by sm...@apache.org on 2007/02/27 13:32:02 UTC
svn commit: r512232 -
/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js
Author: smilek
Date: Tue Feb 27 04:32:01 2007
New Revision: 512232
URL: http://svn.apache.org/viewvc?view=rev&rev=512232
Log:
jetspeed.page.getPath() now returns the profiled path instead of the real page path (previously, the real path was all that was available in the ajaxapi psml response - now the profiledPath is included in this response)
Modified:
portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js
Modified: portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js?view=diff&rev=512232&r1=512231&r2=512232
==============================================================================
--- portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js (original)
+++ portals/jetspeed-2/trunk/src/webapp/javascript/jetspeed/desktop/core.js Tue Feb 27 04:32:01 2007
@@ -1313,7 +1313,7 @@
dojo.raise( "unexpected zero or multiple <page> elements in psml" );
var pageElement = pageElements[0];
var children = pageElement.childNodes;
- var simpleValueLNames = new RegExp( "(name|path|title|short-title)" );
+ var simpleValueLNames = new RegExp( "(name|path|profiledPath|title|short-title)" );
var rootFragment = null;
var rootFragmentActions = {};
for ( var i = 0 ; i < children.length ; i++ )
@@ -2577,10 +2577,10 @@
this.pagePathAndQuery = pagePath;
return pagePath;
},
- getPageDirectory: function()
+ getPageRealDirectory: function()
{
var pageDir = "/";
- var pagePath = this.getPath();
+ var pagePath = this.getRealPath();
if ( pagePath != null )
{
var lastSep = pagePath.lastIndexOf( "/" );
@@ -2619,6 +2619,10 @@
return this.name;
},
getPath: function()
+ {
+ return this.profiledPath;
+ },
+ getRealPath: function()
{
return this.path;
},
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org