diff options
-rw-r--r-- | wqflask/wqflask/templates/snp_browser.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/snp_browser.html b/wqflask/wqflask/templates/snp_browser.html index 284a371a..435a521c 100644 --- a/wqflask/wqflask/templates/snp_browser.html +++ b/wqflask/wqflask/templates/snp_browser.html @@ -539,17 +539,17 @@ var headers = []; var col_header = rows[0].querySelectorAll("th"); - for(var i = 1; i < col_header.length; i++) { + for(let i = 1; i < col_header.length; i++) { headers.push(col_header[i].getAttribute("name")); } csv.push(headers.join(",")); - for (var i = 1; i < rows.length; i++) { + for (let i = 1; i < rows.length; i++) { var row = [], cols = rows[i].querySelectorAll("td"); var checkBox = rows[i].querySelector("input"); if(checkBox.checked == true) { - for (var j = 1; j < cols.length; j++) + for (let j = 1; j < cols.length; j++) row.push(cols[j].innerText); csv.push(row.join(",")); |