diff options
author | Alexander Kabui | 2020-12-03 00:04:52 +0300 |
---|---|---|
committer | Alexander Kabui | 2020-12-03 00:04:52 +0300 |
commit | 8746f2e93fe889ac0ba9e801b3684764fffa2945 (patch) | |
tree | 6b3d68d08c1fcb3db1d2cd13f265b6ec7ca6fe3c | |
parent | a57241a160757ac737658b33ea7cc8ad670a0e61 (diff) | |
download | genenetwork2-8746f2e93fe889ac0ba9e801b3684764fffa2945.tar.gz |
add table row index
-rw-r--r-- | wqflask/wqflask/static/new/javascript/auto_hide_column.js | 4 |
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; } |