Load node message catalog when added dynamically

This commit is contained in:
Nick O'Leary 2016-03-12 22:53:07 +00:00
parent 0f49a11228
commit 3af37d3984
1 changed files with 4 additions and 2 deletions

View File

@ -103,9 +103,11 @@ var RED = (function() {
var id = m.id; var id = m.id;
RED.nodes.addNodeSet(m); RED.nodes.addNodeSet(m);
addedTypes = addedTypes.concat(m.types); addedTypes = addedTypes.concat(m.types);
RED.i18n.loadCatalog(id, function() {
$.get('nodes/'+id, function(data) { $.get('nodes/'+id, function(data) {
$("body").append(data); $("body").append(data);
}); });
});
} }
if (addedTypes.length) { if (addedTypes.length) {
typeList = "<ul><li>"+addedTypes.join("</li><li>")+"</li></ul>"; typeList = "<ul><li>"+addedTypes.join("</li><li>")+"</li></ul>";