incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r431072 - /incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js
Date Sat, 12 Aug 2006 19:05:23 GMT
Author: mturyn
Date: Sat Aug 12 12:05:23 2006
New Revision: 431072

URL: http://svn.apache.org/viewvc?rev=431072&view=rev
Log:
Displays id's of nodes that have them.

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?rev=431072&r1=431071&r2=431072&view=diff
==============================================================================
--- incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js (original)
+++ incubator/xap/trunk/WebContent/examples/dojo/xapStatus.js Sat Aug 12 12:05:23 2006
@@ -36,7 +36,11 @@
 				++nodeLikeThisOneNameIndex;
 			}
 			if (siblings[idx] == node) {
-				path = "<strong>" + node.nodeName + "</strong>" + "<font color='#4444FF'>["
+ nodeLikeThisOneNameIndex + "]</font>" + path;
+				var markup= ""+nodeLikeThisOneNameIndex ;
+				if( node.id && node.id.length>0){
+					markup = markup + ", <font size=\"-1\">\"" + node.id+"\"</font>" ;
+				}
+				path = "<strong>" + node.nodeName + "</strong>" + "<font color='#4444FF'>["
+ markup + "]</font>" + path;
 				break;
 			}
 		}



Mime
View raw message