mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
083e253e45
commit
7576878ba5
@ -79,7 +79,11 @@ RED.palette = (function() {
|
|||||||
if (label != type) {
|
if (label != type) {
|
||||||
l = "<p><b>"+label+"</b><br/><i>"+type+"</i></p>";
|
l = "<p><b>"+label+"</b><br/><i>"+type+"</i></p>";
|
||||||
}
|
}
|
||||||
popOverContent = $(l+($("script[data-help-name|='"+type+"']").html()||"<p>no information available</p>").trim()).slice(0,2);
|
|
||||||
|
popOverContent = $(l+($("script[data-help-name|='"+type+"']").html()||"<p>no information available</p>").trim())
|
||||||
|
.filter(function(n) {
|
||||||
|
return this.nodeType == 1 || (this.nodeType == 3 && this.textContent.trim().length > 0)
|
||||||
|
}).slice(0,2);
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
// Malformed HTML may cause errors. TODO: need to understand what can break
|
// Malformed HTML may cause errors. TODO: need to understand what can break
|
||||||
console.log("Error generating pop-over label for '"+type+"'.");
|
console.log("Error generating pop-over label for '"+type+"'.");
|
||||||
|
Loading…
Reference in New Issue
Block a user