From 88a1df75d2f4a771d9ffc1bdc0566f0346193d4f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 8 May 2019 19:32:00 +1000 Subject: [PATCH] Render part image in the stock location list display --- InvenTree/static/script/inventree/stock.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/static/script/inventree/stock.js b/InvenTree/static/script/inventree/stock.js index 71bbed2ab3..f2cd50c731 100644 --- a/InvenTree/static/script/inventree/stock.js +++ b/InvenTree/static/script/inventree/stock.js @@ -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); } }, {