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/08/12 19:05:23 UTC

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

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;
 			}
 		}