mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add click callback on item test tab
This commit is contained in:
parent
ef7cc3f78d
commit
0a566c062d
@ -50,14 +50,9 @@ function reloadTable() {
|
|||||||
//$("#test-result-table").bootstrapTable("refresh");
|
//$("#test-result-table").bootstrapTable("refresh");
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if item.part.has_test_report_templates %}
|
{% if item.has_test_reports %}
|
||||||
$("#test-report").click(function() {
|
$("#test-report").click(function() {
|
||||||
launchModalForm(
|
printTestReports([{{ item.pk }}]);
|
||||||
"{% url 'stock-item-test-report-select' item.id %}",
|
|
||||||
{
|
|
||||||
follow: true,
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user