diff --git a/editor/js/ui/palette.js b/editor/js/ui/palette.js index f17889ded..5ddba95b7 100644 --- a/editor/js/ui/palette.js +++ b/editor/js/ui/palette.js @@ -101,7 +101,7 @@ RED.palette = (function() { if (label != type) { l = "

"+label+"
"+type+"

"; } - popOverContent = $(l+(info?info:$("script[data-help-name|='"+type+"']").html()||"

"+RED._("palette.noInfo")+"

").trim()) + popOverContent = $(l+(info?info:$("script[data-help-name$='"+type+"']").html()||"

"+RED._("palette.noInfo")+"

").trim()) .filter(function(n) { return (this.nodeType == 1 && this.nodeName == "P") || (this.nodeType == 3 && this.textContent.trim().length > 0) }).slice(0,2); @@ -210,7 +210,7 @@ RED.palette = (function() { if (nt.indexOf("subflow:") === 0) { helpText = marked(RED.nodes.subflow(nt.substring(8)).info||""); } else { - helpText = $("script[data-help-name|='"+d.type+"']").html()||""; + helpText = $("script[data-help-name$='"+d.type+"']").html()||""; } var help = '
'+helpText+"
"; RED.sidebar.info.set(help); diff --git a/editor/js/ui/tab-info.js b/editor/js/ui/tab-info.js index c11e1a446..5a28e1fee 100644 --- a/editor/js/ui/tab-info.js +++ b/editor/js/ui/tab-info.js @@ -139,7 +139,7 @@ RED.sidebar.info = (function() { } table += "
"; if (!subflowNode && node.type != "comment") { - var helpText = $("script[data-help-name|='"+node.type+"']").html()||""; + var helpText = $("script[data-help-name$='"+node.type+"']").html()||""; table += '
'+helpText+"
"; } if (subflowNode) {