Revision 5689
Added by ben leinfelder almost 14 years ago
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
select the tree node when exact match is found