mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
- prevent "double loading" of order tables
(cherry picked from commit 17c2070503
)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
2660889879
commit
698798fee7
@ -2173,9 +2173,6 @@ function loadBuildTable(table, options) {
|
|||||||
customView: function(data) {
|
customView: function(data) {
|
||||||
return `<div id='build-order-calendar'></div>`;
|
return `<div id='build-order-calendar'></div>`;
|
||||||
},
|
},
|
||||||
onRefresh: function() {
|
|
||||||
loadBuildTable(table, options);
|
|
||||||
},
|
|
||||||
onLoadSuccess: function() {
|
onLoadSuccess: function() {
|
||||||
|
|
||||||
if (tree_enable) {
|
if (tree_enable) {
|
||||||
|
@ -1759,9 +1759,6 @@ function loadPurchaseOrderTable(table, options) {
|
|||||||
customView: function(data) {
|
customView: function(data) {
|
||||||
return `<div id='purchase-order-calendar'></div>`;
|
return `<div id='purchase-order-calendar'></div>`;
|
||||||
},
|
},
|
||||||
onRefresh: function() {
|
|
||||||
loadPurchaseOrderTable(table, options);
|
|
||||||
},
|
|
||||||
onLoadSuccess: function() {
|
onLoadSuccess: function() {
|
||||||
|
|
||||||
if (display_mode == 'calendar') {
|
if (display_mode == 'calendar') {
|
||||||
|
@ -262,9 +262,6 @@ function loadReturnOrderTable(table, options={}) {
|
|||||||
formatNoMatches: function() {
|
formatNoMatches: function() {
|
||||||
return '{% trans "No return orders found" %}';
|
return '{% trans "No return orders found" %}';
|
||||||
},
|
},
|
||||||
onRefresh: function() {
|
|
||||||
loadReturnOrderTable(table, options);
|
|
||||||
},
|
|
||||||
onLoadSuccess: function() {
|
onLoadSuccess: function() {
|
||||||
// TODO
|
// TODO
|
||||||
},
|
},
|
||||||
|
@ -735,9 +735,6 @@ function loadSalesOrderTable(table, options) {
|
|||||||
customView: function(data) {
|
customView: function(data) {
|
||||||
return `<div id='purchase-order-calendar'></div>`;
|
return `<div id='purchase-order-calendar'></div>`;
|
||||||
},
|
},
|
||||||
onRefresh: function() {
|
|
||||||
loadSalesOrderTable(table, options);
|
|
||||||
},
|
|
||||||
onLoadSuccess: function() {
|
onLoadSuccess: function() {
|
||||||
|
|
||||||
if (display_mode == 'calendar') {
|
if (display_mode == 'calendar') {
|
||||||
|
Loading…
Reference in New Issue
Block a user