mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Fix problem in node pull-down menu (#1448)
This commit is contained in:
		
				
					committed by
					
						 Nick O'Leary
						Nick O'Leary
					
				
			
			
				
	
			
			
			
						parent
						
							5b137c457b
						
					
				
				
					commit
					298e37ec53
				
			| @@ -255,16 +255,19 @@ RED.typeSearch = (function() { | ||||
|         var commonCount = 0; | ||||
|         var item; | ||||
|         for(i=0;i<common.length;i++) { | ||||
|             item = { | ||||
|                 type: common[i], | ||||
|                 common: true, | ||||
|                 def: RED.nodes.getType(common[i]) | ||||
|             }; | ||||
|             item.label = getTypeLabel(item.type,item.def); | ||||
|             if (i === common.length-1) { | ||||
|                 item.separator = true; | ||||
|             var itemDef = RED.nodes.getType(common[i]); | ||||
|             if (itemDef) { | ||||
|                 item = { | ||||
|                     type: common[i], | ||||
|                     common: true, | ||||
|                     def: itemDef | ||||
|                 }; | ||||
|                 item.label = getTypeLabel(item.type,item.def); | ||||
|                 if (i === common.length-1) { | ||||
|                     item.separator = true; | ||||
|                 } | ||||
|                 searchResults.editableList('addItem', item); | ||||
|             } | ||||
|             searchResults.editableList('addItem', item); | ||||
|         } | ||||
|         for(i=0;i<Math.min(5,recentlyUsed.length);i++) { | ||||
|             item = { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user