diff --git a/docs/batchCodeTable.html b/docs/batchCodeTable.html index fdccefbedb7..d81c5c9c870 100644 --- a/docs/batchCodeTable.html +++ b/docs/batchCodeTable.html @@ -43,7 +43,7 @@
+
Select country: Global diff --git a/docs/batchCodeTable.js b/docs/batchCodeTable.js index bf827216bff..46f93420cad 100644 --- a/docs/batchCodeTable.js +++ b/docs/batchCodeTable.js @@ -103,8 +103,9 @@ class BatchCodeTableInitializer { return json; }) .then(json => { - this.#_setTableRows(json.data) + this.#setTableRows(json.data); this.#selectInput(); + this.#displayControlColumn(country == 'Global'); }); } @@ -113,7 +114,7 @@ class BatchCodeTableInitializer { json.data.forEach(row => row.unshift(null)); } - #_setTableRows(rows) { + #setTableRows(rows) { this.#batchCodeTable .clear() .rows.add(rows) @@ -126,6 +127,10 @@ class BatchCodeTableInitializer { input.select(); } + #displayControlColumn(isVisible) { + this.#batchCodeTable.column(this.#getColumnIndex('control')).visible(isVisible); + } + #initializeHistogramView() { const thisClassInstance = this; $(`#${this.#batchCodeTableElement[0].id} tbody`).on(