Render part image in the stock location list display

This commit is contained in:
Oliver Walters 2019-05-08 19:32:00 +10:00
parent 0058207fad
commit 88a1df75d2

View File

@ -347,6 +347,7 @@ function loadStockTable(table, options) {
search: true,
method: 'get',
pagination: true,
pageSize: 25,
rememberOrder: true,
queryParams: options.params,
columns: [
@ -365,7 +366,7 @@ function loadStockTable(table, options) {
title: 'Part',
sortable: true,
formatter: function(value, row, index, field) {
return renderLink(value, row.part.url);
return imageHoverIcon(row.part.image_url) + renderLink(value, row.part.url);
}
},
{