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
1 changed files with 4 additions and 1 deletions

View File

@ -63,7 +63,10 @@ RED.palette = function() {
container:'body',
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({
helper: 'clone',
appendTo: 'body',