Project

General

Profile

« Previous | Next » 

Revision 5687

always open the top level node of the tree when it loads

View differences:

index.jsp
139 139

  
140 140
			// actually prune if we should
141 141
			doActiveDomain(divId);
142

  
143
			// open first node always
144
			$("#" + divId).jstree("open_node", $("#" + divId).children("ul").first().children("li").first());
142 145
			
143 146
			// open to the node to last selected
144 147
			var nodePath = $("#" + divId).jstree("get_path", $(selectedNode));

Also available in: Unified diff