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