mirror of https://github.com/node-red/node-red.git
Reveal node in search results with mouseover
This highlights nodes in the search results using a mouseover trigger. See forum https://discourse.nodered.org/t/highlight-nodes-in-search-results-list/99747 for a discussion.pull/5368/head
parent
bac0064876
commit
aef90576eb
|
|
@ -440,6 +440,12 @@ RED.search = (function() {
|
|||
$('<div>',{class:"red-ui-search-result-node-type"}).text(node.type).appendTo(contentDiv);
|
||||
$('<div>',{class:"red-ui-search-result-node-id"}).text(node.id).appendTo(contentDiv);
|
||||
|
||||
div.on("mouseover", function(evt) {
|
||||
if ( node.z == RED.workspaces.active() ) {
|
||||
RED.view.reveal(node.id)
|
||||
}
|
||||
});
|
||||
|
||||
div.on("click", function(evt) {
|
||||
evt.preventDefault();
|
||||
currentIndex = i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue