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:
parent
4d8311682c
commit
73aa56c6f3
@ -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> </div>`;
|
header += `<div> </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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user