You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-commits@incubator.apache.org by mt...@apache.org on 2006/12/01 20:50:00 UTC

svn commit: r481380 - /incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js

Author: mturyn
Date: Fri Dec  1 12:49:59 2006
New Revision: 481380

URL: http://svn.apache.org/viewvc?view=rev&rev=481380
Log:
Fixed this for newer way of handling sessions and applications.

Modified:
    incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js

Modified: incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js?view=diff&rev=481380&r1=481379&r2=481380
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js Fri Dec  1 12:49:59 2006
@@ -2,7 +2,7 @@
 document.showXapStatus = function (names) {
 	var sessionNames = names;
 	if( !names ){
-		sessionNames = window.xapSessionIds ;
+		appNames = window.xapApplications ;
 	} else 	if (typeof names == "string") {
 		sessionNames = [names];
 	}
@@ -16,8 +16,9 @@
 };
 
 document.locString = function (name) {
-	var session = window[name];
-	var node = session.domContainer;
+	var session = window.xapApplications[name]._session ;
+	var node = 
+window.xapApplications[name]._session ._application._applicationConfig.element ;
 	var front = "";
 	var path = "";
 	while (node.parentNode) {