mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00: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',
|
name: 'data',
|
||||||
display: allBindings.key,
|
display: allBindings.key,
|
||||||
limit: 50,
|
limit: 50,
|
||||||
|
//templates: {
|
||||||
|
// suggestion: function(item) { return '<div>' + item.product_key + '<div class="pull-right">' + item.cost + '</div>' }
|
||||||
|
//},
|
||||||
source: searchData(allBindings.items, allBindings.key)
|
source: searchData(allBindings.items, allBindings.key)
|
||||||
}).on('typeahead:select', function(element, datum, name) {
|
}).on('typeahead:select', function(element, datum, name) {
|
||||||
@if (Auth::user()->account->fill_products)
|
@if (Auth::user()->account->fill_products)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user