mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix button callback logic (#4502)
This commit is contained in:
parent
bb4b1bf9cc
commit
c3b2bb0380
@ -259,11 +259,9 @@
|
||||
$("#test-result-table").bootstrapTable("refresh");
|
||||
}
|
||||
|
||||
{% if item.has_test_reports %}
|
||||
$("#test-report").click(function() {
|
||||
printTestReports([{{ item.pk }}]);
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
{% if user.is_staff %}
|
||||
$("#delete-test-results").click(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user