mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Load node message catalog when added dynamically
This commit is contained in:
parent
0f49a11228
commit
3af37d3984
@ -103,8 +103,10 @@ 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);
|
||||||
$.get('nodes/'+id, function(data) {
|
RED.i18n.loadCatalog(id, function() {
|
||||||
$("body").append(data);
|
$.get('nodes/'+id, function(data) {
|
||||||
|
$("body").append(data);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (addedTypes.length) {
|
if (addedTypes.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user