mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Show node help in sidebar when clicked in palette
This commit is contained in:
parent
6298a13f06
commit
41f35881e6
@ -63,7 +63,10 @@ RED.palette = function() {
|
|||||||
container:'body',
|
container:'body',
|
||||||
content: $(($("script[data-help-name|='"+nt+"']").html()||"<p>no information available</p>").trim())[0]
|
content: $(($("script[data-help-name|='"+nt+"']").html()||"<p>no information available</p>").trim())[0]
|
||||||
});
|
});
|
||||||
|
$(d).click(function() {
|
||||||
|
var help = '<div class="node-help">'+($("script[data-help-name|='"+d.type+"']").html()||"")+"</div>";
|
||||||
|
$("#tab-info").html(help);
|
||||||
|
});
|
||||||
$(d).draggable({
|
$(d).draggable({
|
||||||
helper: 'clone',
|
helper: 'clone',
|
||||||
appendTo: 'body',
|
appendTo: 'body',
|
||||||
|
Loading…
Reference in New Issue
Block a user