2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 20:16:44 +00:00

Fix button callback logic (#4502)

This commit is contained in:
Oliver 2023-03-17 09:50:02 +11:00 committed by GitHub
parent bb4b1bf9cc
commit c3b2bb0380
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -259,11 +259,9 @@
$("#test-result-table").bootstrapTable("refresh"); $("#test-result-table").bootstrapTable("refresh");
} }
{% if item.has_test_reports %}
$("#test-report").click(function() { $("#test-report").click(function() {
printTestReports([{{ item.pk }}]); printTestReports([{{ item.pk }}]);
}); });
{% endif %}
{% if user.is_staff %} {% if user.is_staff %}
$("#delete-test-results").click(function() { $("#delete-test-results").click(function() {