mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	| @@ -477,8 +477,17 @@ var RED = (function() { | ||||
|                     RED.nodes.addNodeSet(m); | ||||
|                     addedTypes = addedTypes.concat(m.types); | ||||
|                     RED.i18n.loadNodeCatalog(id, function() { | ||||
|                         $.get('nodes/'+id, function(data) { | ||||
|                             appendNodeConfig(data); | ||||
|                         var lang = localStorage.getItem("editor-language")||RED.i18n.detectLanguage(); | ||||
|                         $.ajax({ | ||||
|                             headers: { | ||||
|                                 "Accept":"text/html", | ||||
|                                 "Accept-Language": lang | ||||
|                             }, | ||||
|                             cache: false, | ||||
|                             url: 'nodes/'+id, | ||||
|                             success: function(data) { | ||||
|                                 appendNodeConfig(data); | ||||
|                             } | ||||
|                         }); | ||||
|                     }); | ||||
|                 }); | ||||
| @@ -505,10 +514,19 @@ var RED = (function() { | ||||
|                         typeList = "<ul><li>"+msg.types.map(RED.utils.sanitize).join("</li><li>")+"</li></ul>"; | ||||
|                         RED.notify(RED._("palette.event.nodeEnabled", {count:msg.types.length})+typeList,"success"); | ||||
|                     } else { | ||||
|                         $.get('nodes/'+msg.id, function(data) { | ||||
|                             appendNodeConfig(data); | ||||
|                             typeList = "<ul><li>"+msg.types.map(RED.utils.sanitize).join("</li><li>")+"</li></ul>"; | ||||
|                             RED.notify(RED._("palette.event.nodeAdded", {count:msg.types.length})+typeList,"success"); | ||||
|                         var lang = localStorage.getItem("editor-language")||RED.i18n.detectLanguage(); | ||||
|                         $.ajax({ | ||||
|                             headers: { | ||||
|                                 "Accept":"text/html", | ||||
|                                 "Accept-Language": lang | ||||
|                             }, | ||||
|                             cache: false, | ||||
|                             url: 'nodes/'+msg.id, | ||||
|                             success: function(data) { | ||||
|                                 appendNodeConfig(data); | ||||
|                                 typeList = "<ul><li>"+msg.types.map(RED.utils.sanitize).join("</li><li>")+"</li></ul>"; | ||||
|                                 RED.notify(RED._("palette.event.nodeAdded", {count:msg.types.length})+typeList,"success"); | ||||
|                             } | ||||
|                         }); | ||||
|                     } | ||||
|                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user