mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Improve product title
This commit is contained in:
parent
5183e569cb
commit
00ca886a8a
@ -918,7 +918,11 @@ ko.bindingHandlers.productTypeahead = {
|
|||||||
display: allBindings.key,
|
display: allBindings.key,
|
||||||
limit: 50,
|
limit: 50,
|
||||||
templates: {
|
templates: {
|
||||||
suggestion: function(item) { return '<div title="' + item.product_key + '">' + item.product_key + '</div>' }
|
suggestion: function(item) { return '<div title="'
|
||||||
|
+ item.product_key + ': '
|
||||||
|
+ item.cost + "\n"
|
||||||
|
+ item.notes.substring(0, 60) + '">'
|
||||||
|
+ item.product_key + '</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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user