mirror of https://github.com/node-red/node-red.git
Merge pull request #5368 from gorenje/patch-4
Reveal node in search results via mouseoverpull/5375/head
commit
6a75a084ad
|
|
@ -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