From bc3a81510aee3a35e0c923f91947ad0772ed2742 Mon Sep 17 00:00:00 2001
From: Frederick Muriuki Muriithi
Date: Wed, 20 Dec 2023 06:36:52 +0300
Subject: Reduce table columns

Reduce the table columns displayed by javascript for the platforms.
---
 qc_app/static/js/select_platform.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'qc_app/static/js')

diff --git a/qc_app/static/js/select_platform.js b/qc_app/static/js/select_platform.js
index d78877e..456cfcf 100644
--- a/qc_app/static/js/select_platform.js
+++ b/qc_app/static/js/select_platform.js
@@ -10,7 +10,7 @@ function radio_column(chip) {
 }
 
 function setup_genechips(genechip_data) {
-    columns = ["GeneChipName", "Name", "GeoPlatform", "GO_tree_value"]
+    columns = ["GeneChipId", "GeneChipName"]
     submit_button = document.querySelector(
 	"#select-platform-form input[type='submit']");
     elt = document.getElementById(
@@ -19,7 +19,7 @@ function setup_genechips(genechip_data) {
     if((genechip_data === undefined) || genechip_data.length === 0) {
 	row = document.createElement("tr");
 	col = document.createElement("td");
-	col.setAttribute("colspan", "5");
+	col.setAttribute("colspan", "3");
 	text = document.createTextNode("No chips found for selected species");
 	col.appendChild(text);
 	row.appendChild(col);
-- 
cgit v1.2.3