From 119439a37b43a61305325616d0ae33599614d87c Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 14 Feb 2017 15:49:47 +0200 Subject: [PATCH] Handle long product names in typeahead --- resources/views/invoices/edit.blade.php | 2 +- resources/views/invoices/knockout.blade.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index e77ce4b56add..f6e1ae83aa79 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -253,7 +253,7 @@ - {{ $invoiceLabels['item'] }} + {{ $invoiceLabels['item'] }} {{ $invoiceLabels['description'] }} @if ($account->showCustomField('custom_invoice_item_label1')) {{ $account->custom_invoice_item_label1 }} diff --git a/resources/views/invoices/knockout.blade.php b/resources/views/invoices/knockout.blade.php index d9d404b9e6a7..7ba64167f4cb 100644 --- a/resources/views/invoices/knockout.blade.php +++ b/resources/views/invoices/knockout.blade.php @@ -894,9 +894,9 @@ ko.bindingHandlers.productTypeahead = { name: 'data', display: allBindings.key, limit: 50, - //templates: { - // suggestion: function(item) { return '
' + item.product_key + '
' + item.cost + '
' } - //}, + templates: { + suggestion: function(item) { return '
' + item.product_key + '
' } + }, source: searchData(allBindings.items, allBindings.key) }).on('typeahead:select', function(element, datum, name) { @if (Auth::user()->account->fill_products)