1
0
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:
Nicholas O'Leary 2013-10-09 21:41:16 +01:00
parent 6298a13f06
commit 41f35881e6

View File

@ -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',