From 698798fee78b13af3aefa8798876dcb97bfc75c9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 4 Jul 2023 16:23:43 +1000 Subject: [PATCH] Order table improvements (#5151) (#5152) - prevent "double loading" of order tables (cherry picked from commit 17c20705038563432fa50ad35fa49231588e47ee) Co-authored-by: Oliver --- InvenTree/templates/js/translated/build.js | 3 --- InvenTree/templates/js/translated/purchase_order.js | 3 --- InvenTree/templates/js/translated/return_order.js | 3 --- InvenTree/templates/js/translated/sales_order.js | 3 --- 4 files changed, 12 deletions(-) diff --git a/InvenTree/templates/js/translated/build.js b/InvenTree/templates/js/translated/build.js index f47c4a3618..58b709e2a8 100644 --- a/InvenTree/templates/js/translated/build.js +++ b/InvenTree/templates/js/translated/build.js @@ -2173,9 +2173,6 @@ function loadBuildTable(table, options) { customView: function(data) { return `
`; }, - onRefresh: function() { - loadBuildTable(table, options); - }, onLoadSuccess: function() { if (tree_enable) { diff --git a/InvenTree/templates/js/translated/purchase_order.js b/InvenTree/templates/js/translated/purchase_order.js index a27c8e12d1..911f2edea6 100644 --- a/InvenTree/templates/js/translated/purchase_order.js +++ b/InvenTree/templates/js/translated/purchase_order.js @@ -1759,9 +1759,6 @@ function loadPurchaseOrderTable(table, options) { customView: function(data) { return `
`; }, - onRefresh: function() { - loadPurchaseOrderTable(table, options); - }, onLoadSuccess: function() { if (display_mode == 'calendar') { diff --git a/InvenTree/templates/js/translated/return_order.js b/InvenTree/templates/js/translated/return_order.js index b326a97da0..4542a7d6da 100644 --- a/InvenTree/templates/js/translated/return_order.js +++ b/InvenTree/templates/js/translated/return_order.js @@ -262,9 +262,6 @@ function loadReturnOrderTable(table, options={}) { formatNoMatches: function() { return '{% trans "No return orders found" %}'; }, - onRefresh: function() { - loadReturnOrderTable(table, options); - }, onLoadSuccess: function() { // TODO }, diff --git a/InvenTree/templates/js/translated/sales_order.js b/InvenTree/templates/js/translated/sales_order.js index 4052769baa..7211dae488 100644 --- a/InvenTree/templates/js/translated/sales_order.js +++ b/InvenTree/templates/js/translated/sales_order.js @@ -735,9 +735,6 @@ function loadSalesOrderTable(table, options) { customView: function(data) { return `
`; }, - onRefresh: function() { - loadSalesOrderTable(table, options); - }, onLoadSuccess: function() { if (display_mode == 'calendar') {