From 66e5aa4060ba79550f5334ca619e9c0cb222ee98 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 Feb 2022 14:23:25 +1100 Subject: [PATCH 1/2] Reload build output table when an active build output is deleted --- InvenTree/templates/js/translated/build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index 43f8fd1110..17970f0f41 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -610,7 +610,7 @@ function loadBuildOutputTable(build_info, options={}) { data: { output: pk }, - onSuccess: function() { + success: function() { $(table).bootstrapTable('refresh'); } } From c6089a282872ebd261bc2a03844aae73917c49a6 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 3 Feb 2022 14:47:35 +1100 Subject: [PATCH 2/2] Reload completed output table --- InvenTree/build/templates/build/detail.html | 1 + InvenTree/templates/js/translated/build.js | 1 + 2 files changed, 2 insertions(+) diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index 8479c2819f..b548632b56 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -252,6 +252,7 @@ + {% include "filter_list.html" with id='incompletebuilditems' %} {% endif %} diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index 17970f0f41..3868ac1b09 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -594,6 +594,7 @@ function loadBuildOutputTable(build_info, options={}) { { success: function() { $(table).bootstrapTable('refresh'); + $('#build-stock-table').bootstrapTable('refresh'); } } );