2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Fix call to renderPart (#4514)

This commit is contained in:
Oliver 2023-03-22 17:04:02 +11:00 committed by GitHub
parent 4d8311682c
commit 73aa56c6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ function createSupplierPart(options={}) {
} }
}); });
header = constructLabel('Base Part', {}); header = constructLabel('Base Part', {});
header += renderPart('header', part_model); header += renderPart(part_model);
header += `<div>&nbsp;</div>`; header += `<div>&nbsp;</div>`;
} }
@ -279,7 +279,7 @@ function deleteSupplierParts(parts, options={}) {
return; return;
} }
function renderPart(sup_part) { function renderPartRow(sup_part) {
var part = sup_part.part_detail; var part = sup_part.part_detail;
var thumb = thumbnailImage(part.thumbnail || part.image); var thumb = thumbnailImage(part.thumbnail || part.image);
var supplier = '-'; var supplier = '-';
@ -306,7 +306,7 @@ function deleteSupplierParts(parts, options={}) {
var ids = []; var ids = [];
parts.forEach(function(sup_part) { parts.forEach(function(sup_part) {
rows += renderPart(sup_part); rows += renderPartRow(sup_part);
ids.push(sup_part.pk); ids.push(sup_part.pk);
}); });
@ -557,7 +557,7 @@ function deleteManufacturerParts(selections, options={}) {
return; return;
} }
function renderPart(man_part, opts={}) { function renderPartRow(man_part, opts={}) {
var part = man_part.part_detail; var part = man_part.part_detail;
var thumb = thumbnailImage(part.thumbnail || part.image); var thumb = thumbnailImage(part.thumbnail || part.image);
@ -573,7 +573,7 @@ function deleteManufacturerParts(selections, options={}) {
var ids = []; var ids = [];
selections.forEach(function(man_part) { selections.forEach(function(man_part) {
rows += renderPart(man_part); rows += renderPartRow(man_part);
ids.push(man_part.pk); ids.push(man_part.pk);
}); });