Project

General

Profile

« Previous | Next » 

Revision 5689

select the tree node when exact match is found

View differences:

lib/style/skins/semtools/index.jsp
206 206
	var exactMatch = $(matches).filter("#" + searchTerm).first();
207 207
	if (exactMatch && exactMatch.length == 1) {
208 208
		//alert("exactMatch: " + exactMatch);
209
		// select in the tree, honoring the configured selection limit
210
		$("#" + divId).jstree("select_node", $(exactMatch), true);
211
		// act as those you clicked it
212
		// TODO: convert to event listeners on the tree
209 213
		select($(exactMatch).children("a"));
210 214
	}
211 215
}

Also available in: Unified diff