aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorAlexander Kabui2020-12-03 00:04:52 +0300
committerAlexander Kabui2020-12-03 00:04:52 +0300
commit8746f2e93fe889ac0ba9e801b3684764fffa2945 (patch)
tree6b3d68d08c1fcb3db1d2cd13f265b6ec7ca6fe3c /wqflask
parenta57241a160757ac737658b33ea7cc8ad670a0e61 (diff)
downloadgenenetwork2-8746f2e93fe889ac0ba9e801b3684764fffa2945.tar.gz
add table row index
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/static/new/javascript/auto_hide_column.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/auto_hide_column.js b/wqflask/wqflask/static/new/javascript/auto_hide_column.js
index 652b2ad7..73b639dc 100644
--- a/wqflask/wqflask/static/new/javascript/auto_hide_column.js
+++ b/wqflask/wqflask/static/new/javascript/auto_hide_column.js
@@ -1,10 +1,10 @@
$(function (){
-$("table th").each(function(index,col_th){
+$("table th").each(function(th_index,col_th){
var filter_counter = 0;
// map each column to row ie column i to ith element
var column_tds = $(this).closest('table').find('tr td:nth-child(' + (index + 1) + ')')
- column_tds.each(function(j,col_td){
+ column_tds.each(function(td_index,col_td){
if(this.innerHTML==''||this.innerHTML=="N/A"){
filter_counter+=1;
}