mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 13:27:33 -04:00 
			
		
		
		
	Testing typeahead custom suggestion
This commit is contained in:
		
							parent
							
								
									7711d0a456
								
							
						
					
					
						commit
						c68689db41
					
				| @ -890,6 +890,9 @@ ko.bindingHandlers.productTypeahead = { | ||||
|             name: 'data', | ||||
|             display: allBindings.key, | ||||
|             limit: 50, | ||||
|             //templates: {
 | ||||
|             //    suggestion: function(item) { return '<div>' + item.product_key + '<div class="pull-right">' + item.cost + '</div>' }
 | ||||
|             //},
 | ||||
|             source: searchData(allBindings.items, allBindings.key) | ||||
|         }).on('typeahead:select', function(element, datum, name) { | ||||
|             @if (Auth::user()->account->fill_products) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user