Revision 5658
Added by ben leinfelder about 14 years ago
index.jsp | ||
---|---|---|
95 | 95 |
//"initially_select" : [ selectedNodeId ] |
96 | 96 |
}, |
97 | 97 |
//"core" : { "initially_open" : [ selectedNodeId ] }, |
98 |
"plugins" : [ "themes", "html_data", "ui", "cookies" ] |
|
98 |
"search" : { "case_insensitive" : true }, |
|
99 |
"plugins" : [ "themes", "html_data", "ui", "cookies", "search" ] |
|
99 | 100 |
}); |
100 | 101 |
}); |
101 | 102 |
|
103 |
// enable searching on it |
|
104 |
$("#" + divId + "Search").keyup( |
|
105 |
function () { |
|
106 |
if ($("#" + divId + "Search").val().length >= 3) { |
|
107 |
$("#" + divId).jstree("search", $("#" + divId + "Search").val()); |
|
108 |
} |
|
109 |
}); |
|
110 |
|
|
102 | 111 |
// TODO: try to select the original node after refresh with active domain |
103 | 112 |
//$("#" + divId).jstree("open_node", $(selectedNode)); |
104 | 113 |
//$("#" + divId).jstree("select_node", $(selectedNode)); |
... | ... | |
197 | 206 |
</tr> |
198 | 207 |
<tr> |
199 | 208 |
<td> |
209 |
<input type="text" id="activeMeasurementsSearch" /> |
|
200 | 210 |
<div class="select"> |
201 | 211 |
<div name="activeMeasurements" id="activeMeasurements" multiple="multiple" size="5" style="width: 100%" onchange="initialize(this)"> |
202 | 212 |
<p>loading...</p> |
... | ... | |
228 | 238 |
</tr> |
229 | 239 |
<tr> |
230 | 240 |
<td> |
241 |
<input type="text" id="activeEntitiesSearch" /> |
|
231 | 242 |
<div class="select"> |
232 | 243 |
<div name="activeEntities" id="activeEntities" multiple="multiple" size="5" style="width: 216px" onchange="initialize(this)"> |
233 | 244 |
<p>loading...</p> |
... | ... | |
257 | 268 |
</tr> |
258 | 269 |
<tr> |
259 | 270 |
<td> |
271 |
<input type="text" id="activeCharacteristicsSearch" /> |
|
260 | 272 |
<div class="select"> |
261 | 273 |
<div name="activeCharacteristics" id="activeCharacteristics" multiple="multiple" size="5" style="width: 216px" onchange="initialize(this)"> |
262 | 274 |
<p>loading...</p> |
... | ... | |
286 | 298 |
</tr> |
287 | 299 |
<tr> |
288 | 300 |
<td> |
301 |
<input type="text" id="activeProtocolsSearch" /> |
|
289 | 302 |
<div class="select"> |
290 | 303 |
<div name="activeProtocols" id="activeProtocols" multiple="multiple" size="5" style="width: 216px" onchange="initialize(this)"> |
291 | 304 |
<p>loading...</p> |
Also available in: Unified diff
add search box for finding an entry in the tree